From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74010 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and move Date: Wed, 10 Nov 2010 11:40:37 -0500 Message-ID: <87oc9xt9mi.fsf@andy.bu.edu> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1289407304 22387 80.91.229.12 (10 Nov 2010 16:41:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 10 Nov 2010 16:41:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22378@lists.math.uh.edu Wed Nov 10 17:41:40 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 1PGDjs-0002wy-VT for ding-account@gmane.org; Wed, 10 Nov 2010 17:41:37 +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 1PGDjB-0007Xc-T9; Wed, 10 Nov 2010 10:40:53 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PGDjA-0007XQ-NI for ding@lists.math.uh.edu; Wed, 10 Nov 2010 10:40:52 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PGDj8-0000Q6-Nf for ding@lists.math.uh.edu; Wed, 10 Nov 2010 10:40:52 -0600 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1PGDj7-0003cQ-00 for ; Wed, 10 Nov 2010 17:40:50 +0100 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGDj6-0002P1-AY for ding@gnus.org; Wed, 10 Nov 2010 17:40:48 +0100 Original-Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 17:40:48 +0100 Original-Received: from cohen by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Nov 2010 17:40:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 29 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:eex/UsxEeIQGDYcVAwLSoCflANM= X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74010 Archived-At: >>>>> "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 I've done it with a let. I'll push a patch shortly. There is a another problem. nnir (intentionally) mangles the subject to add something like "[10:mail/3390] " at the front of the subject (this is [retrieval_score:real_group_name/real_article_number] ). Obviously we would like to remove it from the subject stored in the registry. I think the simplest solution would be to modify gnus-registry-simplify-subject to take care of it before it calls gnus-simplify-subject. Assuming this OK with you, I'll push it. Cheers, andy