Source

dotfiles / muttrc.sh

# A basic .muttrc for use with Gmail
# Change the following six lines to match your Gmail account details

source ~/.muttrc_private

set use_from=yes
set envelope_from=yes
set use_envelope_from=yes

source ~/.muttrc_private_wilcoxd
set mbox_type="Maildir"

set spoolfile = "+INBOX"
set postponed = "+[Gmail]/Drafts"
set record = "+[Gmail]/Sent Mail"

set header_cache=/Users/aias/.mutt/cache/headers
set message_cachedir=/Users/aias/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates

set move = no    # read messages stay in the inbox
bind editor <Tab> complete-query
set hostname =
set imap_keepalive = 300
set timeout = 300

set edit_headers
set fast_reply = yes # (controls the confirmation of TO and Subject in replys and forwards)
set confirmappend = no

set include = yes
set query_command = "contacts -Sf '%eTOKEN%n' '%s' | sed -e 's/TOKEN/\t/g'"

set auto_tag = yes
hdr_order Date From To Cc
#auto_view text/html
set ispell="aspell -e -c"

set forward_format = "Fwd: %s"       # format of subject when forwarding

# ######################################## INDEX SECTION ##############################################

set sort_re
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"


# ######################################## PAGER OPTIONS SECTION #######################################

unset markers              # no ugly plus signs
set pager_stop             # don't go to next message automatically
set index_format =  "%4C [%Z] %{%b %D} %-15.15L %s"

# ########################################## MACRO SECTION ######################################
# Gmail-style keyboard shortcuts
macro index,pager y "<enter-command>unset trash\n <delete-message>" "Gmail archive message"
macro index,pager d "<enter-command>set trash=\"imaps://imap.googlemail.com/[Gmail]/Bin\"\n <delete-message>" "Gmail delete message"

macro index,pager g0 "<change-folder>=INBOX<enter>" "Go to inbox"
macro index,pager ,e "<enter-command>unset wait_key<enter><pipe-message>bbedit -t 'message.mutt' --view-top --clean<enter><enter-command>set wait_key<enter>"
macro index,pager ,h "<enter-command>unset wait_key<enter><pipe-message>python ~/bin/mutt_view_html.py<enter><enter-command>set wait_key<enter>"
macro index,pager gt "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to sent mail"

macro index,pager ,0 "<enter-command>set sendmail<enter>" "Prints the current sendmail configuration"

# ###################################### BIND SECTION #########################################
bind	index,pager G	group-reply
bind editor <Tab> complete-query
#bind editor ^T complete
bind editor <space> noop

# Try to get something like Vi keybindings in the Emacs editor
# See http://www.mutt.org/doc/manual.txt for a complete list of
#
# This is a poor man's Vi keybindings set, but it's the ones I use most often...
# line editor commands
bind editor <ESC>0 bol
bind editor <ESC>$ eol
bind editor <ESC>Dw kill-word

macro index     h "c?t"

#bind editor <delete> backspace
# ^^^ MUST remember the <>s around the delete, that was what was causing the "needing to press d twice to get 1 d" bug. WD-rpw 05-06-2012

# ############################## FOLDER HOOK SECTION ######################################


# Uncomment these settings so you have a threadeded view other places
# and unthreaded view in the INBOX
#
# This is also an example of folder hooks, so I'm leaving that here in
# case I need an example
#set sort_aux = reverse-last-date-received  # like gmail
#folder-hook . set sort=threads
#folder-hook INBOX set sort=date-received

# BUT I've changed and like threaded view everywhere, INBOX on a reverse sort
set sort=threads
folder-hook . set sort_aux='reverse-last-date-received'
folder-hook INBOX set sort_aux=last-date-received



# ################################ THEME SECTION #######################################
source /Users/aias/.mutt-colors-solarized-dark-16.muttrc