From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84986 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and notmuch? Date: Wed, 24 Sep 2014 00:14:50 +0800 Message-ID: <87d2ams491.fsf@ericabrahamsen.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411489907 27628 80.91.229.3 (23 Sep 2014 16:31:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2014 16:31:47 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33230@lists.math.uh.edu Tue Sep 23 18:31:40 2014 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 1XWSyK-0007QW-TC for ding-account@gmane.org; Tue, 23 Sep 2014 18:29: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 1XWSxb-0007hW-50; Tue, 23 Sep 2014 11:29:03 -0500 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 1XWSxZ-0007hI-5n for ding@lists.math.uh.edu; Tue, 23 Sep 2014 11:29:01 -0500 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 1XWSxW-0003l2-Td for ding@lists.math.uh.edu; Tue, 23 Sep 2014 11:29:00 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWSxV-0004Md-2C for ding@gnus.org; Tue, 23 Sep 2014 18:28:57 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XWSp2-00065H-0p for ding@gnus.org; Tue, 23 Sep 2014 18:20:12 +0200 Original-Received: from 218.23.156.110 ([218.23.156.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 18:20:12 +0200 Original-Received: from eric by 218.23.156.110 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Sep 2014 18:20:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.23.156.110 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:FIaLnMpCGgVnCLI7GwpEU+vRizE= X-Spam-Score: -2.4 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84986 Archived-At: Rainer M Krug writes: > <#secure method=pgpmime mode=sign> > > Steinar Bang writes: > >>>>>>> Rainer M Krug : >> >>> Now that I can search gmane (perfect - love it!) I can't search my >>> local imap server via notmuch anymore - any suggestions how I can >>> achieve both via nnir or "G G"? >> >> One way would be to replace >> (nnimap . imap) in nnir-method-default-engines with >> (nnimap . notmuch) > > I had > > ,---- > | '(nnimap "Maildir" > | (nnimap-stream shell) (nnimap-shell-program > | "/usr/local/opt/dovecot/libexec/dovecot/imap -o > | mail_location=maildir:$HOME/Maildir") > | (nnir-search-engine 'notmuch))) > `---- > > in my gnus file, but it produced an error message. > I am just trying your suggestion, and I get the following: > > ,---- > | notmuch args: search --format=text --output=files hallo > | Massaging notmuch output...done > | Search produced empty results. > | gnus-group-read-ephemeral-group: Couldn't request group: Search produced empty results. > `---- For a while I ran notmuch and imap configured like this, and got a lot of the same problems, because I was a bit confused about how all the bits and pieces interacted. I think the problem is that notmuch returns its hits based on filesystem paths. These paths don't necessarily match up with how imap locates its messages, though -- things like mailboxes transformations and namespaces can mean that imap sees the location of a message in a way that doesn't jive with the filesystem path. If you've got multiple Gnus backends in effect, another awkwardness is that notmuch will probably return all the hits from all backends, whereas nnir will attempt to filter out anything that doesn't belong to the group/server from which you initiated the search. I don't know all the grisly details, or whether it could be made to work: when I realized what was happening I just stopped using notmuch as a nnir engine for nnimap messages. Now I have a Frankenstein search setup, using notmuch-search by itself, and the imap nnir engine, in parallel. I'm shifting over to using nnir only, and will eventually get rid of notmuch. Not very helpful, I know, but I think there are fundamental incompatibilities in specifying notmuch as a nnir engine for imap servers. Eric