Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
155 lines (130 sloc) 6.71 KB
# Credit to http://stevelosh.com/blog/2012/10/the-homely-mutt
# Paths ----------------------------------------------
set folder = ~/.mail # mailbox location
set alias_file = ~/.mutt/alias # where to store aliases
set header_cache = ~/.mutt/cache/headers # where to store headers
set message_cachedir = ~/.mutt/cache/bodies # where to store bodies
set mailcap_path = ~/.mutt/mailcap # entries for filetypes
set tmpdir = ~/.mutt/tmp # where to keep temp files
# Basic Options --------------------------------------
set wait_key = no # shut up, mutt
set mbox_type = Maildir # mailbox type
set timeout = 3 # idle time before scanning
set mail_check = 0 # minimum time between scans
unset move # gmail does that
set delete # don't ask, just do
unset confirmappend # don't ask, just do!
set quit # don't ask, just do!!
unset mark_old # read/new is good enough for me
unset beep_new # don't bell on new mails
unset beep # don't bell on errors
set pipe_decode # strip headers and eval mimes when piping
set thorough_search # strip headers and eval mimes before searching
set sleep_time = 0 # make mailbox switching quicker
unset help # don't show help at top
set text_flowed=yes # don't send weird line breaks
# Status Bar -----------------------------------------
set status_chars = " *%A"
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
# Header Options -------------------------------------
ignore * # ignore all headers
unignore from: to: cc: date: subject: # show only these
unhdr_order * # some distros order things by default
hdr_order from: to: cc: date: subject: # and in this order
my_hdr Bcc: cam@camthompson.com
# Account Settings -----------------------------------
alternates cam@simplephoto.com
# Default inbox.
set spoolfile = "=Inbox"
# Mailboxes to show in the sidebar.
mailboxes =Inbox \
=Archive \
=Sent \
=Drafts \
=Search \
=Trash \
=Spam \
# Other special folders.
set postponed = "=Drafts"
# Index View Options ---------------------------------
set date_format = "%m/%d/%y"
set index_format = "[%Z] %D %-20.20F %M %s"
set sort = threads
unset collapse_unread
folder-hook . "exec collapse-all"
set sort_aux = reverse-last-date-received
# Index Key Bindings ---------------------------------
bind index gg first-entry
bind index G last-entry
bind index R group-reply
bind index <tab> sync-mailbox
bind index - collapse-thread
bind index _ collapse-all
# Ctrl-R to mark all as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
# Sync email
macro index o "<shell-escape>offlineimap<enter>" "run offlineimap to sync all mail"
# Saner copy/move dialogs
macro index,pager C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index,pager M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
macro index,pager i "<save-message>=Inbox\n" "move message to inbox"
macro index,pager d "<enter-command>unset resolve<enter><clear-flag>N<enter-command>set resolve<enter><save-message>=Trash\n" "mark as read and trash"
macro index,pager e "<enter-command>unset resolve<enter><clear-flag>N<enter-command>set resolve<enter><save-message>=Archive\n" "mark as read and archive"
macro index,pager ! "<enter-command>unset resolve<enter><clear-flag>N<enter-command>set resolve<enter><save-message>=Spam\n" "mark as read and move to spam"
# Pager View Options ---------------------------------
set pager_index_lines = 5 # number of index lines to show
set pager_context = 3 # number of context lines to show
set pager_stop # don't go to next message automatically
set menu_scroll # scroll in menus
set tilde # show tildes like in vim
unset markers # no ugly plus signs
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
# Pager Key Bindings ---------------------------------
bind pager k previous-line
bind pager j next-line
bind pager gg top
bind pager G bottom
bind pager R group-reply
# Attachments ----------------------------------------
bind attach <return> view-mailcap
macro pager \Cu "|urlview<enter>" "call urlview to open links"
# Compose View Options -------------------------------
set realname = "Cam Thompson" # who am i?
set envelope_from # which from?
unset sig_dashes # no dashes before sig
set edit_headers # show headers when composing
set fast_reply # skip to compose when replying
set askcc # ask for CC:
set fcc_attach # save attachments with the body
unset mime_forward # forward attachments as part of body
set forward_format = "Fwd: %s" # format of subject when forwarding
set forward_decode # decode when forwarding
set attribution = "On %d, %n wrote:" # format of quoting header
set reply_to # reply to Reply to: field
set reverse_name # reply as whomever it was to
set include # include message in replies
set forward_quote # include message in forwards
set query_command = "contacts -Sf '%eTOKEN%n' '%s' | sed -e 's/TOKEN/\t/g'"
bind editor <Tab> complete-query
bind editor ^T complete
# Sending --------------------------------------------
set from = "cam@camthompson.com"
set sendmail = "/usr/local/bin/msmtp -a camthompson"
set sendmail_wait = 0
set record = "=Sent"
# Drafts ---------------------------------------------
bind compose p postpone-message
bind index p recall-message
# Search ---------------------------------------------
macro index s "<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch-py ~/.mail/Search<enter><change-folder-readonly>=Search<enter>" "search mail (using notmuch)"
macro index a "<limit>all\n" "show all messages (undo limit)"
bind index,pager N search-opposite
# Navigation -----------------------------------------
macro index,pager gi "<change-folder>=Inbox<enter>"
macro index,pager ga "<change-folder>=Archive<enter>"
macro index,pager gd "<change-folder>=Drafts<enter>"
macro index,pager gt "<change-folder>=Sent<enter>"
macro index,pager gs "<change-folder>=Search<enter>"
# Colors ---------------------------------------------
source ~/.mutt/cet.muttrc