set imap_user = "barak@barakmich.com" #set imap_pass = "secret" source ~/.mutt/secret set smtp_url = "smtp://barak@barakmich.com@smtp.gmail.com:587/" #set smtp_pass = "secret" set from = "me@barakmich.com" set realname = "Barak Michener" set folder = "imaps://imap.gmail.com:993" set spoolfile = "+INBOX" set postponed = "+[Gmail]/Drafts" set record="+[Gmail]/Sent Mail" set copy=no set trash = "imaps://imap.gmail.com/[Gmail]/Trash" # These two lines appear to be needed on some Linux distros, like Arch Linux set ssl_starttls = yes set ssl_force_tls = yes #set imap_force_ssl = yes set header_cache=~/.mutt/cache/headers set message_cachedir=~/.mutt/cache/bodies set certificate_file=~/.mutt/certificates set signature=~/.sig bind editor noop bind index,pager g noop bind index,pager c mail #Compose macro index,pager e "=[Gmail]/All Mail" "Archive" bind generic x tag-entry #Select Conversation bind index x tag-thread #Select Conversation bind pager x tag-message #Select Conversation bind index,pager s flag-message #Star a message macro index,pager + "=[Gmail]/Important" "Mark as important" macro index,pager ! "=[Gmail]/Spam" "Report spam" bind index,pager a group-reply #Reply all bind pager A view-attachments #In emails bind index,pager \# delete-thread #Delete bind index,pager l copy-message #Label bind index L limit bind index,pager v save-message #Move to macro index,pager I "O" "Mark as read" macro index,pager U "O" "Mark as unread" macro index,pager ga "=[Gmail]/All Mail" "Go to all mail" macro index,pager gs "=[Gmail]/Starred" "Go to 'Starred'" macro index,pager gd "=[Gmail]/Drafts" "Go to 'Drafts'" macro index,pager gl "?" "Go to 'Label'" macro index,pager gi "=INBOX" "Go to inbox" macro index,pager gt "=[Gmail]/Sent Mail" "Go to 'Sent Mail'" macro pager B "'urlview'" 'Follow links with urlview' folder-hook +INBOX macro index,pager y "e" "Archive" folder-hook "+[Gmail]/Trash" macro index,pager y "=INBOX" "Move to inbox" folder-hook "+[Gmail]/Starred" bind index,pager y flag-message #"Toggle star" set to_chars = " +>-?" "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 index m "N" "mark as read" macro compose A "?" "attach message(s) to this message" macro index J "" "next unread" macro index,pager "\Cf" "" "page down" macro index,pager "\Cb" "" "page down" color normal white default 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 color header brightgreen black ^From: color header brightcyan black ^To: color header brightcyan black ^Reply-To: color header brightcyan black ^Cc: color header brightblue black ^Subject: color body brightred black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ color body brightblue black (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ color index brightcyan default ~N color index yellow default "~v~(!~N)~(!~F)" # collapsed thread with no New or Flagged color index red default "~v~(~F)~(!~N)" # collapsed thread with Flagged but no New color index green default "~v~(~N)" # collapsed thread with New folder-hook . exec collapse-all ## TO show the number of messages in a collapsed thread ## you need to add "%M" to the "index_format", eg: #set index_format="%4C %Z %2M %[!%y%m%d] %-17.17F (%3l) %s" set index_format="%4C %Z %2M %{%b %d} %-15.15L (%?l?%4l&%4c?) %s"