From ad18e894f302bbd502c18b58f9df6fe3d2c8a818 Mon Sep 17 00:00:00 2001 From: Artlef Date: Sat, 30 Jun 2018 18:52:26 +0200 Subject: [PATCH] Use notmuch with mutt for searching mails --- README.md | 4 +++- muttrc | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c218f47..6f833cc 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,7 @@ Software to install: - Mutt as a mail client. - OfflineImap and Getmail to retrieve mail on disk. - Msmtp to send mail. -- abook for managing addresses. - gpg for password storage and mail encryption. +- notmuch for indexing and searching mail. To integrate it with mutt, use + [mutt-notmuch](https://upsilon.cc/~zack/blog/posts/2011/01/how_to_use_Notmuch_with_Mutt/) +- abook for managing addresses. diff --git a/muttrc b/muttrc index 473c538..0d54eb2 100644 --- a/muttrc +++ b/muttrc @@ -45,6 +45,15 @@ folder-hook $folder 'source ~/.mutt/perso' macro index,pager 'source ~/.mutt/perso!' macro index,pager 'source ~/.mutt/gmail!' +# use notmuch, see mutt-notmuch +macro index \ + "unset wait_key~/bin/mutt-notmuch --prompt search~/.cache/mutt_results" \ + "search mail (using notmuch)" + +macro index \ +"unset wait_key~/bin/mutt-notmuch thread~/.cache/mutt_resultsset wait_key" \ + "search and reconstruct owning thread (using notmuch)" + #colors source ~/.mutt/colors.linux