Re: Using GNUS to search nnmaildir emails

James Thomas <[email protected]> Sat, 12 Oct 2024 06:06:21 +0530
Newsgroups gmane.emacs.gnus.general
Message-ID <[email protected]>
Husain Alshehhi wrote:

> Has anyone been been able to search for emails in an nnmaildir group
> through gnus? When I call 'G G'
> (gnus-group-read-ephemeral-search-group) on an nnmaildir group, I get
>
>     Group nnselect:nnselect-87msjn9rpu.fsf contains no messages
>
> When I setup my engine to use mu (I have used mu4e before), it fails
> to run[1][2]. I searched online in different forums and I was not able
> to find someone with confirmation that search on nnmaildir is working
> for them (either with the default config, or with mu). Can someone
> shed light on what configuration actually work? nnimap seems to be
> working fine.

Can't speak for mu, but I use notmuch so:

(nnmaildir "foo"
  (directory "~/Oldmail/mail/foo")
  (gnus-search-engine
   gnus-search-notmuch
   (remove-prefix "/home/jim/Oldmail/mail/foo/")))

For this I'd run 'notmuch setup' at the beginning and made sure it
worked with 'notmuch search'.

Maybe in your case the 'remove-prefix' isn't set correctly?

--