From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/83918 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Create a group from a list of message-ids Date: Tue, 26 Nov 2013 11:06:03 +0700 Message-ID: <87siujyfh0.fsf@ericabrahamsen.net> References: <87vbzjs5fk.fsf@gmail.com> <844n71b5nh.fsf@davestoy.home> <871u24c18u.fsf@gmail.com> <87d2lo4zy7.fsf@ericabrahamsen.net> <87siukalp5.fsf@gmail.com> <87txf01uum.fsf@ericabrahamsen.net> <87d2loa812.fsf@gmail.com> <87d2lo1ozp.fsf@ericabrahamsen.net> <877gbwlc3p.fsf@ft.bewatermyfriend.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1385438761 25547 80.91.229.3 (26 Nov 2013 04:06:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 04:06:01 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32173@lists.math.uh.edu Tue Nov 26 05:06:05 2013 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vl9uW-0002lJ-QJ for ding-account@gmane.org; Tue, 26 Nov 2013 05:06:05 +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 1Vl9tN-0004yp-7c; Mon, 25 Nov 2013 22:04:53 -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 1Vl9tK-0004yd-GR for ding@lists.math.uh.edu; Mon, 25 Nov 2013 22:04:50 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Vl9t9-0000aJ-H4 for ding@lists.math.uh.edu; Mon, 25 Nov 2013 22:04:49 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Vl9t7-000648-JH for ding@gnus.org; Tue, 26 Nov 2013 05:04:37 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vl9t6-00024x-M2 for ding@gnus.org; Tue, 26 Nov 2013 05:04:36 +0100 Original-Received: from 223.204.248.60 ([223.204.248.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Nov 2013 05:04:36 +0100 Original-Received: from eric by 223.204.248.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Nov 2013 05:04:36 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 71 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 223.204.248.60 User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:2y0lnvogwF25bCGZN5o99Q+EZe8= X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-2386--15409h-0s--0d--H*u:Emacs, 0.000-68--438h-0s--0d--H*u:Gnus, 0.000-68--438h-0s--0d--H*UA:Gnus, 0.000-67--430h-0s--0d--H*u:linux, 0.000-67--430h-0s--0d--H*UA:linux Spam tokens: 0.991-13825--748h-68083s--0d--HTo:D*gnus.org, 0.991-14340--790h-70683s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.991-14340--790h-70683s--0d--H*RU:quimby.gnus.org, 0.988-14147--983h-70685s--0d--HX-Spam-Relays-Internal:quimby.gnus.org, 0.988-14147--983h-70685s--0d--H*RT:80.91.231.51 Autolearn status: no 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.91.229.3 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2 List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:83918 Archived-At: Frank Terbeck writes: > Eric Abrahamsen wrote: > [...] >> It also comes with its own tagging structure and all kinds of stuff I >> don't use. The superfluity bugs me a little, but the searching is nice >> enough that it doesn't matter. A nnir plugin for notmuch might actually >> be nice. > > Actually, at least in the git version of gnus, ‘nnir’ seems to feature > support for ‘notmuch’ (ie. there is a defcustom ‘nnir-notmuch-program’ > and a defun ‘nnir-run-notmuch’). > > Since ‘mu’ seems to work fairly similarly to notmuch, I would guess > that, this part would serve as a source for ideas for ‘mu’-integration. > > Regards, Frank Thanks to both of you for pointing that out! I had no idea that was there, but would definitely prefer using a more gnus-y interface. I set it up like so: (setq nnir-method-default-engines '((nnimap . notmuch) (nntp . gmane))) And gave it a shot. It didn't work for me for two reasons. I have several different imap servers, all run through dovecot with a maildir structure. They're all under ~/.mail, like ~/.mail/acc1 ~/mail/acc2 etc. That means nnir-notmuch-remove-prefix has to be set to an appropriate value for each server, which you can do with server parameters. But that means you can only search one server at a time (which I guess you'd do by putting a notmuch-group key into the query? I don't even know how to do that). That isn't really what I want -- I'd like to search all my mail at once. And even if I had to do it server by server, it seems like `nnir-run-notmuch' should be able to figure out how to filter to that server by itself... The second problem was the maildir structure. I specify maildir through the nnimap-shell-program parameter, which looks like: /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/.mail/acc1/:LAYOUT=fs `nnir-compose-result' munges results differently depending on whether they're maildir or not, but it only determines that by checking (gnus-group-server server) for the nnmaildir string. I'd need to change that, I guess by putting more thorough checking in `nnir-run-notmuch', `nnir-run-namazu', and `nnir-run-swish++', which would then pass a flag to `nnir-compose-results'. Lastly, a notmuch result in my case looks like this: /home/eric/.mail/pr/[Gmail]/Sent Mail/cur/1384510308.M437592P10993.pellet,S=3672,W=3728:2,S Which would, if the above problems were fixed, turn into a result that looks like ["nnimap+PR:[Gmail].Sent Mail" "1384510308.M437592P10993.pellet"]. The problem there is that the slash between [Gmail] and Sent Mail (which really is a filesystem separator, because I've used LAYOUT=fs) gets turned into a dot, when it's actually supposed to remain a slash. That's probably my fault for using LAYOUT=fs, and it would be ugly to put a special-case check for that in nnir.el Ahem, so... Please consider that mostly notes to self. If you're not using dovecot with a maildir layout, this probably won't be an issue. I'd be happy to provide a patch for more thorough checking for maildir structure, but I probably won't use this anyway, because I don't want to be restricted to searching one server at a time. All for now, Eric