From: Rainer M Krug <Rainer@krugs.de>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: ding@gnus.org
Subject: Re: nnir and notmuch?
Date: Wed, 24 Sep 2014 09:26:04 +0200 [thread overview]
Message-ID: <m238bh1nub.fsf@krugs.de> (raw)
In-Reply-To: <87d2ams491.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 24 Sep 2014 00:14:50 +0800")
[-- Attachment #1: Type: text/plain, Size: 3551 bytes --]
Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> Rainer M Krug <Rainer@krugs.de> writes:
>
>> <#secure method=pgpmime mode=sign>
>>
>> Steinar Bang <sb@dod.no> writes:
>>
>>>>>>>> Rainer M Krug <Rainer@krugs.de>:
>>>
>>>> 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.
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.
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
>
>
>
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
next prev parent reply other threads:[~2014-09-24 7:26 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 8:40 Rainer M Krug
2014-09-23 10:15 ` Steinar Bang
2014-09-23 10:24 ` Rasmus
2014-09-23 10:50 ` Rainer M Krug
2014-09-23 10:48 ` Rainer M Krug
2014-09-23 11:59 ` Steinar Bang
2014-09-23 13:15 ` Andrew Cohen
2014-09-24 7:18 ` Rainer M Krug
2014-09-23 16:14 ` Eric Abrahamsen
2014-09-24 7:26 ` Rainer M Krug [this message]
2014-09-24 9:41 ` Eric Abrahamsen
2014-09-24 13:51 ` Adam Sjøgren
2014-09-24 17:40 ` Eric Abrahamsen
2014-09-24 19:34 ` Alan Schmitt
2014-09-25 0:08 ` Eric Abrahamsen
2014-09-24 19:47 ` Adam Sjøgren
2014-09-26 7:21 ` Eric S Fraga
2014-09-26 9:05 ` Rainer M Krug
2014-10-01 18:03 ` Eric S Fraga
2014-09-26 9:54 ` Adam Sjøgren
2014-10-01 19:47 ` Eric S Fraga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m238bh1nub.fsf@krugs.de \
--to=rainer@krugs.de \
--cc=ding@gnus.org \
--cc=eric@ericabrahamsen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).