Skip to content

Instantly share code, notes, and snippets.

@bobbyd3
Created August 8, 2012 17:55
Show Gist options
  • Save bobbyd3/3297077 to your computer and use it in GitHub Desktop.
Save bobbyd3/3297077 to your computer and use it in GitHub Desktop.
blank template for .muttrc
set mbox_type = Maildir
set sendmail = /usr/bin/msmtp
set folder = ~/Mail/Gmail
set spoolfile = "+INBOX"
set mbox = "+[Gmail]/All Mail"
set postponed = "+[Gmail]/Drafts"
unset record
mailboxes +INBOX
macro index D \
"<save-message>+[Gmail]/Trash<enter>" \
"move message to the trash"
macro index S \
"<save-message>+[Gmail]/Spam<enter>" \
"mark message as spam"
# main options
set realname = "Your Name"
set from = "Your Email"
set mail_check = 0
set envelope_from
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
# sort/threading
set sort = threads
set sort_aux = reverse-last-date-received
set sort_re
# look and feel
set pager_index_lines = 8
set pager_context = 5
set pager_stop
set menu_scroll
set smart_wrap
set tilde
unset markers
# composing
set fcc_attach
unset mime_forward
set forward_format = "Fwd: %s"
set include
set forward_quote
ignore * # first, ignore all headers
unignore from: to: cc: date: subject: # then, show only these
hdr_order from: to: cc: date: subject: # and in this order
# set default
color normal white default
# main colors
color status cyan default
color indicator brightwhite default
color tree blue default
color error brightred default
color message brightyellow default
#
# message states
#
# order matters here since some states override others
#
# messages to me
uncolor index "~P"
color index brightblack default "~P"
# threads containing new messages
uncolor index "~(~N)"
color index brightcyan default "~(~N)"
# new messages themselves
uncolor index "~N"
color index brightyellow default "~N"
# tagged
uncolor index "~T"
color index brightgreen default "~T"
# deleted
uncolor index "~D"
color index brightred default "~D"
# set up the headers
color header brightyellow default "^from:"
color header yellow default "^to:"
color header yellow default "^cc:"
color header blue default "^date:"
color header brightblue default "^subject:"
# message bodies
color attachment brightblack default
color search red brightblack
color signature cyan default
color tilde blue default
# *bold*, _underline_, and /italic/
color body brightcyan default "(^| )\\*[^*]+\\*( |$)"
color body brightcyan default "(^| )_[^_]+_( |$)"
color body brightcyan default "(^| )/[^/]+/( |$)"
# quote blocks
color quoted magenta default
color quoted1 cyan default
color quoted2 green default
color quoted3 magenta default
color quoted4 cyan default
color quoted5 green default
color quoted6 magenta default
color quoted7 cyan default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment