From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79458 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: Bug with referring articles Date: Wed, 13 Jul 2011 15:09:39 -0400 Message-ID: References: <87fwnbr15c.fsf@fastmail.fm> <8739j39v6a.fsf@andy.bu.edu> <87vcvybcb4.fsf@member.fsf.org> <87mxh3412x.fsf@andy.bu.edu> <87y60js0xb.fsf@andy.bu.edu> <87tyaqnzql.fsf@andy.bu.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1310584799 1300 80.91.229.12 (13 Jul 2011 19:19:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 19:19:59 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M27754@lists.math.uh.edu Wed Jul 13 21:19:55 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 1Qh4yP-0005bX-Dy for ding-account@gmane.org; Wed, 13 Jul 2011 21:19:53 +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 1Qh4xM-0000P8-DG; Wed, 13 Jul 2011 14:18:48 -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 1Qh4ox-0000Ml-1Y for ding@lists.math.uh.edu; Wed, 13 Jul 2011 14:10:07 -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 1Qh4op-0000EI-GW for ding@lists.math.uh.edu; Wed, 13 Jul 2011 14:10:04 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1Qh4om-0004lM-2n for ding@gnus.org; Wed, 13 Jul 2011 21:09:56 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qh4ol-0007bo-Rf for ding@gnus.org; Wed, 13 Jul 2011 21:09:55 +0200 Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com ([207.172.223.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jul 2011 21:09:55 +0200 Original-Received: from dave by 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Jul 2011 21:09:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 83 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:fVIJ/hMiHXh/pBpF8v/2kUSH2Jo= X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79458 Archived-At: on Wed Jul 13 2011, Andrew Cohen wrote: >>>>>> "Dave" == Dave Abrahams writes: > > > Dave> This is really nice! I can get this to work for my current > Dave> server by setting `gnus-refer-article-method' to: > > Dave> (current (nnir)) > > Dave> [However, I note that the customization interface doesn't give > Dave> me any way to produce that value] > > I'll get around to adding the customize stuff at some point. OK. I think, while you're at it, some documentation is needed of what the "Options" field means when setting up nnir there. > Dave> The first problem with this is that it searches all the groups > Dave> (of which I happen to have many). Since I'm using Gmail's > Dave> servers, there's one group (called [Gmail]/All Mail) where it > Dave> can find every message. Is there a way to get it to look in > Dave> just that one group? > > Certain group scan be eliminated from nnir searching by using the > variable `nnir-ignored-newsgroups'. This is a regex so you should be > able to configure it to do what you want. Ah, thanks! > However you might consider doing the opposite (leave out the "All > Mail" group and search the rest). Although possibly slower, this will > keep the information about what group each found message is in which > could be helpful if you do much sorting of messages into different > groups. Not useful enough to justify the slowdown. Seriously, it's **really** slow. I have too many groups. I mostly don't sort messages anymore; most of what's there is legacy stuff. > Dave> Secondly, I couldn't figure out what should go in the element > Dave> after nnir if I wanted to specify that server directly. > Dave> Here's my `gnus-select-method': > > Each element in `gnus-refer-article-method' is a select method (with the > exception of the special symbol `current'). You can read about select > methods in the manual. I'm familiar with them, thanks. > The specification of an nnir select method has the usual form (nnir > "server"). Leaving out the server simply defaults to searching the > server from which the article-referral process was called. Yes, my problem is how to specify the "server" element. > Dave> (nnimap "BoostPro" (nnimap-address "imap.gmail.com") > Dave> (nnimap-stream ssl) (nnimap-authenticator login) > Dave> (nnimap-nov-is-evil t)) > > This is a valid select method for an nnimap server. It will have nothing > to do with searching with nnir. Inasmuch as it describes my server, I thought it would help you describe what should go in the "server" element. > Dave> Lastly, is there any way to get this lookup to try the agent > Dave> first? If I have the article on my local machine and I'm > Dave> disconnected, it seems like I ought to be able to get to it > Dave> still. > > I don't know much about the agent. I believe that the agent is is set on > a per-server basis. Since nnir is about searching only (it produces > "ephemeral" groups) it can't be agentized. Interestingly, it does seem to change the behavior of nnir: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9058 -- Dave Abrahams BoostPro Computing http://www.boostpro.com