From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Alexis Praga <alexis.praga@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Gnus and notmuch
Date: Thu, 10 Jun 2021 09:21:52 -0700 [thread overview]
Message-ID: <87czstu1un.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <86h7i6yv59.fsf@mailoo.org> (Alexis Praga's message of "Thu, 10 Jun 2021 10:35:30 +0200")
Alexis Praga <alexis.praga@gmail.com> writes:
> Hi guys,
>
> I've tried to setup Gnus to use notmuch as a search engine
> (configuration below) but running G G on the group buffer yields an
> error "(wrong-type-argument number-or-marker-p nil)" (backtrace below).
>
> My setup uses 2 maildir. If I set only the "gmail" one, I can run
> searches but there are never any results. Using the "free" one, I have
> the previous error.
>
> Any help appreciated !
>
> Configuration :
>>(setq gnus-select-method '(nnnil "")
>> gnus-secondary-select-methods
>> '((nnmaildir "gmail" (directory "~/mail/gmail")
>> (gnus-search-engine gnus-search-notmuch)
>> (config-file "/home/alex/.notmuch-config")
>> (get-new-mail nil)
>> )
>> (nnmaildir "free" (directory "~/mail/free")
>> (gnus-search-engine gnus-search-notmuch)
>> (config-file "/home/alex/.notmuch-config")
>> (get-new-mail nil)
>> ))
>> gnus-search-use-parsed-queries nil) ; Emacs 28
The first thing will be to get the (config-file "file") bits inside the
search engine config, like so:
(nnmaildir "gmail" (directory "~/mail/gmail")
(gnus-search-engine gnus-search-notmuch
(config-file "/home/alex/.notmuch-config")
(remove-prefix "~/mail/gmail"))
(get-new-mail nil))
Note that you'll also need a remove-prefix setting for each engine, also
inside the gnus-search-engine sexp. That's a required setting, so I'll
add it to the example in the search section of the manual, it's
confusing to not have it in there.
Try with updated config as above, and let me know if that fixes it.
Yours,
Eric
next prev parent reply other threads:[~2021-06-10 16:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-10 8:35 Gnus and notmuch Alexis Praga
2021-06-10 16:21 ` Eric Abrahamsen [this message]
[not found] ` <865yyly6bn.fsf@mailoo.org>
[not found] ` <87fsxpsgpk.fsf@ericabrahamsen.net>
2021-06-10 19:03 ` Alexis Praga
2021-06-10 21:05 ` Eric Abrahamsen
2021-06-10 21:09 ` Eric Abrahamsen
2021-06-11 8:05 ` Alexis Praga
2021-06-11 16:06 ` Eric Abrahamsen
2021-06-11 16:01 ` Alexandr Vityazev
2021-06-11 18:00 ` Alexis Praga
2021-06-11 18:06 ` Eric Abrahamsen
2021-06-12 14:45 ` Alexis Praga
2021-06-12 16:50 ` Alexandr Vityazev
2021-06-14 7:14 ` Alexis Praga
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czstu1un.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=alexis.praga@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).