Gnus development mailing list
 help / color / mirror / Atom feed
From: Julien Cubizolles <j.cubizolles@free.fr>
To: ding@gnus.org
Subject: gnus-search configuration example for notmuch
Date: Mon, 21 Mar 2022 17:10:39 +0100	[thread overview]
Message-ID: <87pmmfl20w.fsf@free.fr> (raw)

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



             reply	other threads:[~2022-03-21 20:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-21 16:10 Julien Cubizolles [this message]
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

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=87pmmfl20w.fsf@free.fr \
    --to=j.cubizolles@free.fr \
    --cc=ding@gnus.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 NNTP newsgroup(s).