When setting up notmuch
for use with mutt
in Debian, I followed this guide
The macro setup there, didn’t work in the Gentoo installation, though.
I looked here and used the macro there:
macro index
| head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"
"show only messages matching a notmuch pattern"