### MUTT config file ### # Basic setup set mbox_type=Maildir set folder=$HOME/.maildb set spoolfile=+/GMAIL/INBOX set alias_file=~/.mutt-alias source ~/.mutt-alias set query_command= "abook --mutt-query '%s'" macro index,pager A "abook --add-email-quiet" "add the sender address to abook" # mailboxes source $HOME/.mutt/mailboxes # GPG source $HOME/.mutt/crypto # smtp set use_from = yes set envelope_from = "yes" # I have to set these defaults because when you first startup mutt # it's not running folder hooks. It just starts in a folder set from="greg.grossmeier@gmail.com" set realname="Greg Grossmeier" set record="+GMAIL/Sent" set postponed="+GMAIL/Drafts" my_hdr From: Greg Grossmeier set sendmail="/usr/bin/msmtp -a gmail" #set signature=$HOME/.mutt/signature-gmail ##### ##### ##### Now a bunch of other setup ##### ##### ##### set copy=yes # Whether to save sent messages set delete=yes # Do not ask when purging deleted message set record=+Sent # Where to save sent messages set beep_new=yes # Beep when new messages arrive? set move=no # Move read messages to another folder? set forward_quote=yes # Quote the email body when forwarding? set include=yes # Quote the email body when replying? ignore * # this means "ignore all headers by default" unignore From: unignore To: unignore Reply-To: unignore Mail-Followup-To: unignore Subject: unignore Date: unignore CC: unignore BCC: hdr_order From: Return-Path: \ Reply-To: \ Date: Subject: Importance: set editor="nano -r 70 -t" set header_cache="~/.mutt/headers" set mail_check=120 # check for new mail every 90 seconds set timeout=15 # after 15 secs of no keypresses, start checking for new mail set reverse_name # Reply with the address used in the TO/CC header set ascii_chars=yes # Use ASCII arrows set reverse_realname=yes # Reply with the name used in FROM set reverse_alias=yes set fast_reply="yes" set confirmappend=no # Confirm when appending messages to an existing mailbox? set pager_index_lines=15 # Show 5 message headers from your message index above an email you are reading set markers # mark wrapped lines of text in the pager with a + set smart_wrap # Don't wrap mid-word set pager_context=5 # Retain 5 lines of previous page when scrolling. set pager_stop = yes set status_on_top # Status bar on top. set sort = 'threads' set sort_aux = 'last-date-received' set tilde set sig_dashes # A signature must always start with a "-- " unset collapse_unread unset mark_old unset ignore_list_reply_to alternative_order text/plain text/html # Show the text mime firstly # Sidebar Settings set sidebar_visible set sidebar_width = 30 set sidebar_delim = "|" # Formating set compose_format="-- %v-- Compose [Approximate Message Size: %l Attachments: %a]%>-" set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] " set alias_format="%4n %2f %t %-12a %r" set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s-%>-%P-" set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f" set message_format="%-.16n: %s" set pager_format="~~~~~~~~~ On %{%a, %d %b %Y} at [%[%H:%M]]: %s %|~" set attribution='On %{%a, %d %b %Y}, %n wrote:\n' set forward_format = "[%s]" #### Macros and such # get the url view working macro index \cb |urlview\n 'call urlview to extract URLs out of a message' macro pager \cb |urlview\n 'call urlview to extract URLs out of a message' # h will take you to the folder list in the index macro index h "c?t" # ctrl-n, ctrl-p to select next, prev folder # ctrl-o to open selected folder 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 # color of sidebar folders with new mail color sidebar_new yellow default # Dump all headers macro index p " " macro pager p " " # SHORTCUTS for each of the main inboxes macro index ga "=GMAIL/INBOX" "Go to GMAIL inbox" macro index gb "=GROSSMEIER/INBOX" "Go to GROSSMEIER inbox" # allow space characters in macros bind editor noop # hooks for entering any folder in my GMAIL account folder-hook +GMAIL.* set from="greg.grossmeier@gmail.com" folder-hook +GMAIL.* set record=+GMAIL/Sent folder-hook +GMAIL.* set postponed=+GMAIL/Drafts folder-hook +GMAIL.* my_hdr From: Greg Grossmeier #folder-hook +GMAIL.* set signature=$HOME/.mutt/signature-gmail folder-hook +GMAIL.* set sendmail='"/usr/bin/msmtp -a gmail"' folder-hook .* macro index,pager y "=GMAIL/Archive" "Archive" folder-hook .* macro index,pager d "=GMAIL/Trash" "Trash" # hooks for entering any folder in my GROSSMEIER account folder-hook +GROSSMEIER.* set from="greg@grossmeier.net" folder-hook +GROSSMEIER.* set record=+GROSSMEIER/Sent folder-hook +GROSSMEIER.* set postponed=+GROSSMEIER/Drafts folder-hook +GROSSMEIER.* my_hdr From: Greg Grossmeier #folder-hook +GROSSMEIER.* set signature=$HOME/.mutt/signature-grossmeier folder-hook +GROSSMEIER.* set sendmail='"/home/greg/src/scripts/smtpforward.sh"' # using that tunneling script folder-hook +GROSSMEIER.* macro index,pager y "=GROSSMEIER/Archive" "Archive" folder-hook +GROSSMEIER.* macro index,pager d "=GROSSMEIER/Trash" "Trash" folder-hook . "push \eV" ##### ##### ##### Colors ##### ##### color header cyan default . color header yellow default ^From color header yellow default ^Subject color body yellow default [_a-z\.\$A-Z0-9-]+@[a-zA-Z0-9\./\-]+ color body yellow default (http|ftp)://[_a-zA-Z0-9\?\=\&\@\%\#\:\,\./~\-]+ color quoted green default color quoted1 cyan default color quoted2 magenta default color signature cyan black color attachment magenta default color tree white default color indicator black yellow color status blue black color tilde blue default color normal white default color index white default "~p" color index green default "! ~p" color header yellow default "importance: " color header blue default "importance: normal" color header brightred default "importance: high" color index brightyellow default "~h 'importance: high'" color header yellow default "precedence: " color header blue default "priority: " color header brightred default "priority: high" color header red default "priority: urgent" color index brightyellow default "~h 'priority: high'" color index brightyellow default "~h 'priority: urgent'" color header blue default "priority: normal" color header brightred default "x-priority: " color header yellow default "X-MSMail-Priority: " color index brightred default "~F" color index yellow default "~N" color index brightyellow default "~N ~p" color index brightblue default "~T" # Tagged color index red default "~D" # Delete