summaryrefslogtreecommitdiff
path: root/lib/muttrc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/muttrc')
-rw-r--r--lib/muttrc115
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