diff options
author | Ben Sima <ben@bsima.me> | 2019-08-27 14:34:49 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-08-27 14:34:49 -0700 |
commit | f3b91d75d2d3153e9fa4d7414929dcc531779727 (patch) | |
tree | c49dc426b64cec2d47dc594a1a5398244ccc4dd0 /lib/muttrc | |
parent | 8c810428d6d93ba718df7e8388615ad7fa3d092c (diff) |
reorganize, and some small fixes
Diffstat (limited to 'lib/muttrc')
-rw-r--r-- | lib/muttrc | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/lib/muttrc b/lib/muttrc new file mode 100644 index 0000000..ebbcdb0 --- /dev/null +++ b/lib/muttrc @@ -0,0 +1,115 @@ +# vim: filetype=muttrc + +set realname = "Ben Sima" +set mbox_type = Maildir + +my_hdr X-URL: https://www.bsima.me +# my_hdr Bcc: ben@bsima.me + +set editor = "vim -f" +set mail_check = 60 +set timeout = 60 +set header_cache = ~/.mutt/cache/headers +set message_cachedir = ~/.mutt/cache/bodies +set certificate_file =~/.mutt/certificates + +# Contacts +set display_filter=~/config/mutt/generate-contacts.sh +set alias_file=~/contacts.txt +source $alias_file + +set move = no +set include +set auto_tag = yes +bind editor ^T complete +set pager_index_lines = 10 +set implicit_autoview = yes + +set sort_aux = 'last-date-received' +set index_format = "[%Z] %D %-20.20F %s" +set date_format = "%m.%d..%H.%M" +set nostrict_threads +set sort = 'threads' +set markers = no # hide line-wrap markers + +# Ignore all headers +ignore * + +# Then un-ignore the ones I want to see +unignore From: +unignore To: +unignore Reply-To: +unignore Subject: +unignore Date: +unignore Organization: +unignore Newsgroups: +unignore CC: +unignore BCC: +unignore User-Agent: + +# Now order the visable header lines +hdr_order Date: From: To: CC: BCC: Reply-To: Subject: Organization: User-Agent: + +set forward_format = "Fwd: %s" +set fast_reply=yes +set forward_decode # decode when forwarding +set reply_to # reply to Reply to: field +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 "<pipe-message> urlscan<Enter>" "Extract URLs" +macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "Extract URLs" + +# Code review stuff +macro index ,A "| git am -s" "apply patch" + +# 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 "jobs" "notmuch://?query=tag:jobs" +virtual-mailboxes "todo" "notmuch://?query=tag:todo" +virtual-mailboxes "newsletters" "notmuch://?query=tag:newsletters" +virtual-mailboxes "github" "notmuch://?query=tag:github" + +macro index,pager S "<vfolder-from-query>" "search mailbox" +macro index,pager A "<modify-labels>+archive -unread -inbox\n" "archive message" +macro index,pager c "<change-vfolder>?" "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`" + +set imap_user = "ben@bsima.me" +set imap_pass = $my_pw + +set sendmail = msmtpq + +set from = "ben@bsima.me" +set use_from = yes + +#set smtp_url = "smtp://ben@bsima.me@mail.bsima.me:587" +#set smtp_pass = $my_pw + +set ssl_starttls = "yes" + +set folder = "~/Mail/ben@bsima.me" +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set record = "+Sent" +set imap_pipeline_depth = 0 |