From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74011 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and move Date: Wed, 10 Nov 2010 10:55:25 -0600 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87sjz9m83m.fsf@lifelogs.com> References: <87wrox5jyh.fsf@andy.bu.edu> <87sjzl5jis.fsf@andy.bu.edu> <8739rl5d9d.fsf@andy.bu.edu> <87vd4h3xmh.fsf@andy.bu.edu> <87sjzap2yk.fsf@lifelogs.com> <87oc9xt9mi.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289408427 28255 80.91.229.12 (10 Nov 2010 17:00:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2010 17:00:27 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22379@lists.math.uh.edu Wed Nov 10 18:00:23 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGE22-0006vg-JU for ding-account@gmane.org; Wed, 10 Nov 2010 18:00:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PGE1r-0007i2-SJ; Wed, 10 Nov 2010 11:00:11 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PGE1q-0007ho-6c for ding@lists.math.uh.edu; Wed, 10 Nov 2010 11:00:10 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PGE1o-0006EY-La for ding@lists.math.uh.edu; Wed, 10 Nov 2010 11:00:09 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PGE1m-00041X-00 for ; Wed, 10 Nov 2010 18:00:06 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGE1j-0006ix-Tn for ding@gnus.org; Wed, 10 Nov 2010 18:00:03 +0100 Original-Received: from 38.98.147.130 ([38.98.147.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 18:00:03 +0100 Original-Received: from tzz by 38.98.147.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 18:00:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 38.98.147.130 X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:gMjRO/PFPukIZKPy3GeKV3zPPr4= X-Spam-Score: -0.7 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74011 Archived-At: On Wed, 10 Nov 2010 11:40:37 -0500 Andrew Cohen wrote: >>>>>> "Ted" == Ted Zlatanov writes: AC> Oops, I think there is nothing to fix. The registry doesn't AC> track where the message comes from but only where its going? AC> Then there shouldn't be a problem... Ted> Yeah. Although in a move it needs to know the source so it can Ted> delete that from the list of groups for the article. So you'll Ted> end up with stale knowledge in the registry. I can Ted> special-case nnir in the hooks or you can wrap the move in Ted> (let ((gnus-original-source-group-for-move "xyz")) ...) Ted> WDYT? Ted AC> I've done it with a let. I'll push a patch shortly. AC> There is a another problem. nnir (intentionally) mangles the subject to AC> add something like "[10:mail/3390] " at the front of the subject (this AC> is [retrieval_score:real_group_name/real_article_number] ). Obviously we AC> would like to remove it from the subject stored in the registry. I think AC> the simplest solution would be to modify gnus-registry-simplify-subject AC> to take care of it before it calls gnus-simplify-subject. Could you use nnir-original-group and nnir-original-subject in the let you said you would do? I'll make the names more general if anyone else needs it but I was thinking this way it's clear that it's a nnir requirement. That way the registry will not care what nnir does to the subject or group name, it will just take the originals from the let-bound variables. Ted