[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnus and notmuch
From: |
Eric Abrahamsen |
Subject: |
Re: Gnus and notmuch |
Date: |
Thu, 10 Jun 2021 09:21:52 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
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
- Gnus and notmuch, Alexis Praga, 2021/06/10
- Re: Gnus and notmuch,
Eric Abrahamsen <=
- Message not available
- Message not available
- Re: Gnus and notmuch, Alexis Praga, 2021/06/10
- Re: Gnus and notmuch, Eric Abrahamsen, 2021/06/10
- Re: Gnus and notmuch, Eric Abrahamsen, 2021/06/10
- Re: Gnus and notmuch, Alexis Praga, 2021/06/11
- Re: Gnus and notmuch, Eric Abrahamsen, 2021/06/11
Re: Gnus and notmuch, Alexandr Vityazev, 2021/06/11