[neomutt-users] Search within all mailboxes

Nicolas Paris nicolas.paris at riseup.net
Tue Aug 28 22:33:35 CEST 2018

> Beside the capabilities of notmuch 

Thanks for notmuch reference. 

I tested the "alternate way"[1] which is the same behavior than using
the mutt build-in "limit" feature. BTW, I noticed a little bug in the
macro specially when the message-id contains a special regexp character
and here[2] is a workaround. Still, this does not solve my initial
problem, but reveals a great full-text index to mine the emails.

I have also tested the "virtual mailboxes" way, but it postulates the
use of only one maildir. This would be a revolution to use this and I
wonder if anyone has some experience of this before I investigate

[1] http://log.or.cz/?p=228
[2] macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp at a;s/\^id:// for at a;s/\\+/\\\\+/g for at a;s/=/\\\\=/g for at a;$,=\"|\";print at a'\`\"<enter>" "show only messages matching a notmuch pattern"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20180828/600f551f/attachment.sig>

More information about the neomutt-users mailing list