###################### Setup Basic Mail Settings ####################
# General settings
set copy # Keep copies of outgoing mail...
set include=yes # Default to including previous message in reply
set quit=yes # Prompt to confirm quit
set hostname="example.com" # Complete addresses with @example.com instead of @`hostname`
set forward_format="Fwd: %s" # Set forward header to be reasonable
set header_cache="~/Maildir/hcache" # Setup header cache
set editor="vim -c 'set ft=mail'" # Start vim with filetype to mail
set delete # just delete the messages I've marked, don't prompt
set move=no # don't move message from the spool
set nomark_old # don't mark any messages as old
set signature='cat ~/signature |'
set markers=no # do not display + at the beginnging of wrapped lines
set smart_wrap=no # do not wrap at word boundries
# Maildir config
# Some of this ganked from http://www.elho.net/mutt/maildir/
set mbox_type="maildir"
set mbox="~/Maildir/inbox"
set folder="~/Maildir"
set mask="!\\.[^.]"
set record="+sent"
set postponed="+drafts"
set trash="+trash" # Set trash folder
set spoolfile="~/Maildir/spool"
# Set mail check times
set mail_check=1
set timeout=10
# auto-view html mail + pgp encoded msgs (according to ~/.mailcap)
# TODO: this might need some tweaking...
set implicit_autoview
auto_view text/html application/x-pgp-message
set mailcap_path="~/.mailcap"
set mailcap_sanitize=yes
# the following like works fine
set sendmail="/usr/sbin/sendmail -bm -f foo@example.com"
###################### Display Settings #############################
set pager_context=4 # Don't scroll off the pager by 4 lines
set pager_index_lines=10 # Set the pager size
set sort=threads # sort by threads
set sort_aux=date-sent # auxiliary sort by the date sent
set index_format="%4C %Z %{%b %d} %-15.15F (%4l) %s" #Set index format
###################### Setup New Key Bindings #######################
bind index G last-entry # Set command aliases
bind pager \\ previous-line # \ goes up in pager
bind index ? search-reverse #Set backward search key
# Bind M to mark all messages read
macro index M "~N\rN.*\r~O\rO.*\r" "Mark all messages in this mailbox as read"
bind pager \cd noop
bind index \cd noop
###################### Sidebar Settings #############################
# Sidebar settings
# Sidebar patch from: http://thomer.com/mutt/
set sidebar_width=32 # set width in pixels
set sidebar_visible=yes # by default, make it visible
color sidebar_new yellow default # color of folders with new mail
# ctrl-n, ctrl-p to select next, prev folder
# ctrl-o to open selected folder
bind index sidebar-prev
bind index sidebar-next
bind index sidebar-open
bind pager sidebar-prev
bind pager sidebar-next
bind pager sidebar-open
# Original setting from sidebar website
bind index \CP sidebar-prev
bind index \CN sidebar-next
bind index \CO sidebar-open
bind pager \CP sidebar-prev
bind pager \CN sidebar-next
bind pager \CO sidebar-open
# I don't need these (yet), scrolls folder list up and down
# sidebar-scroll-up
# sidebar-scroll-down
# b toggles sidebar visibility
macro index b ':toggle sidebar_visible
'
macro pager b ':toggle sidebar_visible
'
# every email addr I ever used...ever.
alternates "foo@example.com|foo@example.net"
###################### Header Settings ##############################
set edit_headers # Have the headers in the editor
set autoedit # with edit_headers, skips the send menu
set header # Include headers in reply messages
# Set the header
my_hdr From: Carl Myers "foo@example.net"
my_hdr Bcc: Me "foo@example.com"
my_hdr X-Operating-System: `uname -a`
# Don't display any headers, then unignore the ones we ant to see
ignore *
unignore date from: to cc subject organization
###################### Color defaults ###############################
# valid colors : white, black, green, magenta,
# blue, cyan, yellow, red,
# Each color comes in plain (red) and bright (brightred)
# color thisthing foreground background [arguments]
#these are the default debian colors and they rock
color normal white black
color attachment brightyellow black
color hdrdefault cyan black
color indicator black cyan
color markers brightred black
color quoted green black
color signature cyan black
color status brightgreen blue
color tilde blue black
color tree red black
## First color the whole index
color index white black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
## whitelist your homies
color index brightblue black "~f somefriend@example.com"
# old coworkers
color index brightcyan black "~f coworker@example.com"
# family
color index brightmagenta black "~f @example.com" # for example, this selects @example.com
# Mail from any of my alternate addresses
color index green black ~P
# Header colors, when reading mail
color hdrdefault cyan black
color header brightgreen black ^To:
color header brightred black ^Cc:
color header brightcyan black ^From:
color header brightmagenta black ^Date:
color header brightcyan black ^Reply-To:
color header brightyellow black ^Subject:
# Body colors
color body yellow black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body green black (https|http|ftp)://[\-\.\,/%~_:?\#&+a-zA-Z0-9=]+
color quoted green black
color attachment yellow black
color signature cyan black
color markers red black
color tilde blue black
#Setup printer
#set print_command="enscript -DDuplex:true -P printername@printerIP"
#macro index c "?" "open a different folder"
#macro pager c "?" "open a different folder"
#macro index C "?" "copy a message to a mailbox"
#macro index M "?" "move a message to a mailbox"
#macro compose A "?" "attach message(s) to this message"
# sidebar stuff
# Sidebar patch from: thomer.com/mutt/
# set up the sidebar, default not visible
set sidebar_width=32
set sidebar_visible=yes
# color of folders with new mail
color sidebar_new yellow default
# b toggles sidebar visibility
# Note: ^M must be typed as ctrl-v enter
macro index b ':toggle sidebar_visible
'
macro pager b ':toggle sidebar_visible
'
# I don't need these (yet), scrolls folder list up and down
# sidebar-scroll-up
# sidebar-scroll-down
# ctrl-n, ctrl-p to select next, prev folder
# ctrl-o to open selected folder
bind index sidebar-prev
bind index sidebar-next
bind index sidebar-open
bind pager sidebar-prev
bind pager sidebar-next
bind pager sidebar-open
# Original setting from sidebar website
bind index \CP sidebar-prev
bind index \CN sidebar-next
bind index \CO sidebar-open
bind pager \CP sidebar-prev
bind pager \CN sidebar-next
bind pager \CO sidebar-open
#mailboxes `echo -n "+ "; find ~/Maildir -type d -name "*" -printf "+'%f' "`
# above is an automated way to do it...but I prefer to manually specify so I can
# set the order, below
mailboxes =inbox
mailboxes =save
mailboxes =debian
mailboxes =drafts
mailboxes =sent
mailboxes =spam
mailboxes =trash