[neomutt-users] Search within all mailboxes
nicolas.paris at riseup.net
Sun Sep 2 18:33:22 CEST 2018
> NeoMutt hat Notmuch integration, but this will usually change your
> workflow quite a bit. mu is less intrusive, see mu-find(1) for
> .muttrc snippets.
> : http://www.djcbsoftware.nl/code/mu/
Great find !
*mu* outperforms **notmuch** in many ways:
- much faster to index maildirs
- much better fields to filter (such flag:attach for email with
For those interested here is my macro to replace mutt limit filter with
mu based search. I find it better than the one provided by your link
which copies all mails into a new maildir: this one only copy
messages-id into a file.
macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'mu query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`mu find --fields i --quiet 2> /dev/null \$(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 mu pattern"
macro index a "<limit>all\n" "show all messages"
More information about the neomutt-users