From 486a7d2e64d3872088b7d61b9cd679f667b4d56b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 10 Jul 2018 11:13:37 -0700 Subject: Add notmuch and urlscan configs to mutt --- muttrc | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'muttrc') diff --git a/muttrc b/muttrc index f6ddfdb..304a51f 100644 --- a/muttrc +++ b/muttrc @@ -21,8 +21,6 @@ source $alias_file set move = no set include set auto_tag = yes -alternative_order text/plain text/html * -auto_view text/x-vcard text/html text/enriched bind editor ^T complete set pager_index_lines = 10 set implicit_autoview = yes @@ -60,6 +58,33 @@ set use_envelope_from = yes set envelope_from = yes set text_flowed = yes +# View multimedia emails + +alternative_order text/plain text/html * +auto_view text/x-vcard text/html text/enriched +macro index,pager \cb " urlscan" "Extract URLs" +macro attach,compose \cb " urlscan" "Extract URLs" + +# Searching/tagging with notmuch +# +# - https://neomutt.org/feature/notmuch +# - https://wiki.archlinux.org/index.php/Notmuch#Integrating_with_NeoMutt + +set virtual_spoolfile=yes + +set nm_default_uri = "notmuch:///home/ben/Mail" +virtual-mailboxes "inbox" "notmuch://?query=tag:inbox" +virtual-mailboxes "archive" "notmuch://?query=tag:archive" +virtual-mailboxes "sent" "notmuch://?query=tag:sent" + +macro index S "" "search mailbox" +macro index,pager A "+archive -unread -inbox\n" "archive message" +macro index c "?" "change to vfolder overview" + +bind index,pager y modify-labels +bind index,pager + entire-thread +bind index,pager X change-vfolder + ## Accounts set my_pw = "`pass bnet/helium/mail/ben`" -- cgit v1.2.3