Use notmuch with mutt for searching mails

This commit is contained in:
Artlef 2018-06-30 18:52:26 +02:00
parent 8a58bb9264
commit ad18e894f3
2 changed files with 12 additions and 1 deletions

View File

@ -8,5 +8,7 @@ Software to install:
- Mutt as a mail client. - Mutt as a mail client.
- OfflineImap and Getmail to retrieve mail on disk. - OfflineImap and Getmail to retrieve mail on disk.
- Msmtp to send mail. - Msmtp to send mail.
- abook for managing addresses.
- gpg for password storage and mail encryption. - 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.

9
muttrc
View File

@ -45,6 +45,15 @@ folder-hook $folder 'source ~/.mutt/perso'
macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/perso<enter><change-folder>!<enter>' macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/perso<enter><change-folder>!<enter>'
macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/gmail<enter><change-folder>!<enter>' macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/gmail<enter><change-folder>!<enter>'
# use notmuch, see mutt-notmuch
macro index <F8> \
"<enter-command>unset wait_key<enter><shell-escape>~/bin/mutt-notmuch --prompt search<enter><change-folder-readonly>~/.cache/mutt_results<enter>" \
"search mail (using notmuch)"
macro index <F9> \
"<enter-command>unset wait_key<enter><pipe-message>~/bin/mutt-notmuch thread<enter><change-folder-readonly>~/.cache/mutt_results<enter><enter-command>set wait_key<enter>" \
"search and reconstruct owning thread (using notmuch)"
#colors #colors
source ~/.mutt/colors.linux source ~/.mutt/colors.linux