Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-search configuration example for notmuch
@ 2022-03-21 16:10 Julien Cubizolles
  2022-03-21 23:33 ` Eric Abrahamsen
  0 siblings, 1 reply; 11+ messages in thread
From: Julien Cubizolles @ 2022-03-21 16:10 UTC (permalink / raw)
  To: ding

I can't get gnus-search to use notmuch as its search engine for a
maildir synced by offlineimap. Every search with G-G returns 

> Group nnselect:nnselect-87ee2vomnz.fsf contains no messages

whereas both a search with gnus-search-imap and with notmuch-search
return many messages.

The relevant parts of my conf are:

--8<---------------cut here---------------start------------->8---
(setq gnus-search-default-engines
      '((nnimap . gnus-search-notmuch)
        (nnselect . gnus-search-nnselect)

(setq gnus-secondary-select-methods
      '(
	(nnimap "FreeOffline"
		(nnimap-stream shell)
		(nnimap-shell-program "/usr/lib/dovecot/imap -o mail_location=maildir:$HOME/email/Maildir/Free:LAYOUT=fs")
		(nnimap-split-methods default)
		(nnimap-inbox "INBOX")
		(gnus-search-notmuch-remove-prefix "/home/wilk/email/Maildir/Free/")
		)
	))
--8<---------------cut here---------------end--------------->8---

I think the remove-prefix is fine since this is an example of (notmuch-show-get-filename)

> "/home/wilk/email/Maildir/Free/Sent/cur/1645551545.M308782P83819.sadhill,S=61554,W=62426:2,S"

Could a kind soul please display his or her configuration to give me
some pointers ? Also is there some way to run some sanity checks ? I've
looked at gnus-search-tests.el and it doesn't seem to check the search
engines.
-- 
Julien Cubizolles



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-03-23 19:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 16:10 gnus-search configuration example for notmuch Julien Cubizolles
2022-03-21 23:33 ` Eric Abrahamsen
2022-03-22  8:16   ` Julien Cubizolles
2022-03-22  9:58     ` Adam Sjøgren
2022-03-22 10:28       ` Eric S Fraga
2022-03-22 11:31       ` Julien Cubizolles
2022-03-22 15:11     ` Eric Abrahamsen
2022-03-22 20:22       ` Dan Christensen
2022-03-23 16:37         ` Eric Abrahamsen
2022-03-23 17:03           ` Dan Christensen
2022-03-23 19:19             ` Eric Abrahamsen

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).