# Phil's Sample .muttrc. # imap stuff to customize right up front. set imap_user="user" set imap_pass="password" set spoolfile={mail} set record=!mail/Sent set folder=!mail set tunnel="ssh -q mail /usr/local/libexec/imapd" mailboxes ! !mail/INpersonal !mail/INlists !mail/INadmin source ~/.mutt/gpg.rc ## ======================================================================== ## Variable settings ## ======================================================================== ## A # file to use for saving new aliases set alias_file=~/.mutt/aliases. # Display: show current mail. set: "->" unset: inverse bar #set arrow_cursor #set ascii_chars ## attribution given to quoted text set attribution="On %[%D], %n wrote:" # Addresses I receive mail at #set alternates="any other addresses" ###### C # Don't ask when adding messages to mailboxes that already exist. unset confirmappend ###### D set delete=yes ###### E # set: header editing! total control over headers! :-) set edit_hdrs # use vim as editor. #set editor="vim '+/^$'" # or use emacs. set editor="~/bin/emacs" ###### F #set folder=~/mail # directory with all mail folders ###### H set history=25 ###### I set ispell=ispeller.pl set in_reply_to = "%n's comments on %[%D] at %[%I:%M%p]" set include ###### M # set: make distinction between New mail and Old mail. unset mark_old # don't move messages to mbox unset move ###### P set pager_stop # set: prevents the command next-page to perform a # next-undeleted when the end of the mail is shown set noprompt_after # set: gives you a prompt when pager exits set print=ask-yes set print_cmd="formail -k -X From: -X Date: -X Cc: -X Subject: -X To: | a2ps -gEmail 2>/dev/null" set postponed=+Postponed ###### Q set quote_regexp="^ *[a-zA-Z]*[]>|}%][]>|}]*" # Don't prompt on exit. set quit=yes ###### R ## reverse_alias # show the name of sender as set with my alias for him set reverse_alias ###### S # Wait 5 seconds before putting sendmail in the background. set sendmail_wait=5 set sort=threads # sorting method - I definitely like "threads" best set status_on_top # set: present the status bar at top, ie before the index ###### T set tmpdir=/usr/tmp set tilde # show non-existant lines of text with a tilde at begin-of-line set timeout=45 # time in seconds until mutt checks folder for new mail set to_chars="X+TCF" #default ###### W ## ====================================================================== ## Format Strings: ## "forw_format", "hdr_format", "pager_format", and "status_format". ## ====================================================================== ## forw_format - format the text used in the format attribution set forw_format="(fwd) %s" ## hdr_format - format of all mails shown in the index display set hdr_format="%3C %Z %[!%m/%d/%y] (%4l) %-22.22F %s" ## pager_format - format of summary on current mail in the pager set pager_format="%S [%C/%m] %n (%l) %s" hdr_order From: To: Cc: Subject: Date: ## status_format - format of summary on the current folder in the index set status_format="%f (%m msgs %l bytes) %?n?%n new msgs? %?b?%b boxes w/ new mail?" ## ======================================================================== ## End of variables ## ======================================================================== ## ======================================================================== ## COMMANDS: ## (un)alias, alternates, bind, (un)ignore, lists, my_hrd, sort, source, ## ======================================================================== # Automatically view some mime types auto_view text/x-vcard text/html application/octet-stream auto_view application/ms-rtf application/rtf application/ms-tnef auto_view application/msword application/vnd.ms-excel application/ms-excel auto_view application/msexcel application/pdf application/postscript auto_view text/x-lyx ## Mailing lists I belong to. #lists cert-advisory tevee-list searchreport ## Command alias : ## Syntax: alias ## :=
{,
} ## Command bind : ## Syntax From version 0.61: bind ## Values for : ## attach, folder-menu, alias-menu; index; pager. ## Special values for : pageup, pagedown, up, down, left, right ## Description: MUTT allows you to bind a command to keys. ## ======================= ## Bindings for the editor ## ======================= # bind editor f1 complete-query ## ======================== ## Bindings for attach menu ## ======================== macro attach \CU "|uudecode" macro attach P ":set nowait_key\n|formail -k -X From: -X Subject: -X CC: -X Date: -X To: |a2ps -1\n:set wait_key\n" "print message one page per side" macro attach p ":set nowait_key\n|formail -k -X From: -X Subject: -X CC: -X Date: -X To: |a2ps\n:set wait_key\n" "print message" ## ==================== ## Bindings for browser ## ==================== ## ====================== ## Bindings for index ## ====================== macro index n "c\n\n" "next unread message (maybe in another mailbox)" macro index S ":set nowait_key\n|formail -c -k -X From: -X Subject: -X CC: -X Date: -X To: >/usr/tmp/reply.txt\n:set wait_key\n" "save message for reply" macro index A ":set nowait_key\n|formail -c -k -X From: -X Subject: -X CC: -X Date: -X To: >>/usr/tmp/reply.txt\n:set wait_key\n" "append message for reply" macro index P ":set nowait_key\n|formail -k -X From: -X Subject: -X CC: -X Date: -X To: |a2ps -gEmail -1\n:set wait_key\n" "print message one page per side" macro index p ":set nowait_key\n|formail -k -X From: -X Subject: -X CC: -X Date: -X To: |a2ps -gEmail\n:set wait_key\n" "print message" ## =========================== ## Bindings for pager ## =========================== macro pager  "|urlview\n" macro pager S ":set nowait_key\n|formail -c -k -X From: -X Subject: -X CC: -X Date: -X To: >/usr/tmp/reply.txt\n:set wait_key\n" "save message for reply" macro pager A ":set nowait_key\n|formail -c -k -X From: -X Subject: -X CC: -X Date: -X To: >>/usr/tmp/reply.txt\n:set wait_key\n" "append message for reply" macro pager n "c\n\n" "next unread message (maybe in another mailbox)" macro pager p ":set nowait_key\n|formail -k -X From: -X Subject: -X CC: -X Date: -X To: |a2ps -gEmail\n:set wait_key\n" "print message" macro pager P ":set nowait_key\n|formail -k -X From: -X Subject: -X CC: -X Date: -X To: |a2ps -gEmail -1\n:set wait_key\n" "print message one page per side" ## =========================== ## Bindings for compose menu ## =========================== #macro compose o "f{mail}Sent\n" "reset fcc: to {mail}Sent" macro compose o "f=outgoing\n" "reset fcc: to outgoing" ## ================= #Color definitions ## ================= ## Format: ## color object foreground background color attachment cyan default color error brightred default color indicator brightwhite blue color markers red default color message brightcyan default color normal default default color quoted brightyellow default color quoted1 brightmagenta default color quoted2 brightcyan default color signature cyan default color status brightwhite blue color tilde yellow default color tree green default color hdrdefault brightgreen blue color header brightmagenta blue ^date: color header brightyellow blue ^from: color header brightwhite blue ^subject: color header brightcyan blue ^(to|cc): color body brightdefault default (ht|f)tp://[-0-9A-Za-z_/.~:\#%@]*[0-9A-Za-z_/\#%] color body brightdefault default [-0-9A-Za-z_%.]+@[-0-9A-Za-z_.]*[A-Za-z] #color index brightblue default "~L dg\.com" #color index brightblue default "~s \"[dD]ata [gG]eneral\"" #color index brightblue default "~s DG" # Mono video attributes mono attachment bold mono status reverse mono hdrdefault none mono header bold ^from: mono header underline ^subject: ## Command ignore : ## Syntax: ignore ## := { } ## MUTT will not show these header lines when showing the contents of a mail, ## ie strip these headers lines from the header before showing the header. ## Command unignore : ## Syntax: unignore ## This command removes headline prefixes from the list specified by the ## command "ignore". ## Ignore everything but the really important lines: ignore * unignore from: date subject to cc X-Spam-Rating X-Spam-Warning