From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84991 Path: news.gmane.org!not-for-mail From: Rainer M Krug Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir and notmuch? Date: Wed, 24 Sep 2014 09:26:04 +0200 Message-ID: References: <87d2ams491.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1411543591 18790 80.91.229.3 (24 Sep 2014 07:26:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2014 07:26:31 +0000 (UTC) Cc: ding@gnus.org To: Eric Abrahamsen Original-X-From: ding-owner+M33235@lists.math.uh.edu Wed Sep 24 09:26:23 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 1XWgxy-0001WM-Rn for ding-account@gmane.org; Wed, 24 Sep 2014 09:26:23 +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 1XWgxu-0002yX-C9; Wed, 24 Sep 2014 02:26:18 -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 1XWgxs-0002yL-Uz for ding@lists.math.uh.edu; Wed, 24 Sep 2014 02:26:16 -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 1XWgxr-0007aI-9S for ding@lists.math.uh.edu; Wed, 24 Sep 2014 02:26:16 -0500 Original-Received: from mail-wg0-f42.google.com ([74.125.82.42]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWgxp-0006oF-Tn for ding@gnus.org; Wed, 24 Sep 2014 09:26:14 +0200 Original-Received: by mail-wg0-f42.google.com with SMTP id a1so5451889wgh.25 for ; Wed, 24 Sep 2014 00:26:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=w6YvzKfRN6rIY+oDNGe7C3oD+p1GmTKMVpfVRg5CTis=; b=G406u8A1TOr+84FxaDQV/9vIqiWqtLnoTtj8l9jnAw0U5UL9SetrBZlWndViJMsfb3 HUoT3d9RZ0/yXIXr1xlTI4vfH3spvIvPJmuVv/UST6BkKdpn73HLLX2kt35LzAoUm8Sz DEARmeUVV3UhbzHeACHf64aVnP/uFLNSTuqT3NmXVMeavIYckxu2M1rcKJVryVoBpbA5 L7o1tjk7/aBoMzvNBkINk89CIWMOyqTL56VmDKk7+e3w+8oeQvOd2+FG2hSJeGKE+Uor 396CzKX5SLslbz8/q3ZpmReB3gyPceBsOuxFkj8J3nlBhalHOuHSH0hyoOSJpI4UF+1I ki5g== X-Received: by 10.180.95.68 with SMTP id di4mr29111097wib.60.1411543568319; Wed, 24 Sep 2014 00:26:08 -0700 (PDT) Original-Received: from Rainers-MacBook-Pro-3.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id ny6sm4744204wic.22.2014.09.24.00.26.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Sep 2014 00:26:07 -0700 (PDT) In-Reply-To: <87d2ams491.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 24 Sep 2014 00:14:50 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84991 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Abrahamsen writes: > Rainer M Krug writes: > >> <#secure method=3Dpgpmime mode=3Dsign>=20 >> >> 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=3Dmaildir:$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=3Dtext --output=3Dfiles hallo >> | Massaging notmuch output...done >> | Search produced empty results. >> | gnus-group-read-ephemeral-group: Couldn't request group: Search produc= ed 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. This might be the reason - makes sense. As I want to use dovecot to access my email stored in maildir (for notmuch, as this is not modifying thew mails when only used for searching), I think I can not use it this way. Makes perfect sense. > > 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 have only the local imap and gmane. > > 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. I think I will do the same here. > Now I have a Frankenstein search setup, using notmuch-search by > itself, and the imap nnir engine, in parallel.=20 Sounds like the best solution - and then just bind notmuch-search to a keyboard shortcut. > I'm shifting over to using nnir only, and will eventually get rid of > notmuch. I tried the normal search on y imap folders, and it is incredibly slow (folders with 10 000 and more emails). Also, my archive is split into years, and a topic can span two years - so the normal imap search is not an option for me here. > > Not very helpful, I know, but I think there are fundamental > incompatibilities in specifying notmuch as a nnir engine for imap > servers. In contrast - quite helpful, as I understood why it is not working to use notmuch for an imap backend. And as my setup is running nicely, I do not intend to change it. Thanks a lot, Rainer > > Eric > > > =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJUInIMAAoJENvXNx4PUvmCpGcIAKNrS5sdf2rfd2QDYPi9Epne kpS0xme3M4ayKzHN9j3rm7qlIvkI/fj7pg5IPrKH9ehBj0SjE3yru9LPjqFmNF13 MVqZ54ua2G21VpoNrUayrIcmj4uGX6uVY2sXavaY8sQYxq5UyLTug6eo4/B/rZv1 lq5ZkMwB6mXYcEdB4I6eItPkPlLTaPmLEcZbUVDL7GwfUfgE2vdj3XDBvrHpYXYe +wy8JtnLyV65uAScXa5KB0JF2iuRYT2yT833t3U9/Rg6dWzd6yfSeoxJlPVjrewx 0CPD9qPKoz2kETSJlSAQiJNzw6+TkY/CjFfcLKNtzhA1u2Ytmw29Epk93MGAm9o= =cDiw -----END PGP SIGNATURE----- --=-=-=--