From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79284 Path: news.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug with referring articles Date: Thu, 30 Jun 2011 13:07:28 -0400 Message-ID: <87y60js0xb.fsf@andy.bu.edu> References: <87fwnbr15c.fsf@fastmail.fm> <8739j39v6a.fsf@andy.bu.edu> <87vcvybcb4.fsf@member.fsf.org> <87mxh3412x.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309453673 16031 80.91.229.12 (30 Jun 2011 17:07:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 17:07:53 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27580@lists.math.uh.edu Thu Jun 30 19:07:49 2011 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 1QcKiT-0004gv-6W for ding-account@gmane.org; Thu, 30 Jun 2011 19:07:49 +0200 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 1QcKiQ-00021k-Bv; Thu, 30 Jun 2011 12:07:46 -0500 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 1QcKiP-00021e-G5 for ding@lists.math.uh.edu; Thu, 30 Jun 2011 12:07:45 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1QcKiL-0008RO-9m for ding@lists.math.uh.edu; Thu, 30 Jun 2011 12:07:45 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QcKiJ-0007gz-CO for ding@gnus.org; Thu, 30 Jun 2011 19:07:39 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QcKiJ-0004dI-5n for ding@gnus.org; Thu, 30 Jun 2011 19:07:39 +0200 Original-Received: from andy.bu.edu ([128.197.41.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 19:07:39 +0200 Original-Received: from cohen by andy.bu.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jun 2011 19:07:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: andy.bu.edu User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:0a0ZgVil8DADiQk92TnActDMtNA= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79284 Archived-At: >>>>> "Lars" == Lars Magne Ingebrigtsen writes: Lars> Please apply, so that people can test it out. :-) OK, if you insist:) Comments: 1. You can add nnir to the list of referral methods as (nnir "server"). If the server part is absent (e.g. (nnir)) then the current server is used. My value for gnus-refer-article-method is gnus-refer-article-method is a variable defined in `gnus.el'. Its value is (current (nnregistry) (nnir) (nnir "gmail")) 2. Imap searching doesn't span groups, so nnir just searches each group on the server in turn. This might be slow (although its pretty fast for me). 3. The function `gnus-summary-refer-article' first tries to find the referent article's header and insert a line in the summary buffer (gnus-summary-insert-subject) and then selects the article (gnus-summary-select-article). This has the effect of looping through the referral method twice. I've memoized things so this doesn't happen for the nnir referral, but with some more thought the double looping can probably be avoided all-together.