# # Gerald Oskoboiny's .muttrc # # $Id: muttrc,v 1.70 2008-02-15 00:09:44 gerald Exp $ # # # originally based on # "ME's personal .muttrc (Mutt 0.90.12)" # (found in tux:/usr/doc/mutt-0.85e/sample.muttrc) set folder=~/mail # where i keep my mailboxes set alias_file=~/.mail-aliases # where I keep my aliases set attribution="* %n <%a> [%d]"# what to use to introduce replies set noconfirmappend # don't ask me if i want to append to mailboxes set copy=yes # always save a copy of outgoing messages set date_format="!%Y-%m-%d %R%Z"# use iso8601 happy dates set delete=yes # purge deleted messages without asking set edit_headers # let me edit the message header when composing set fast_reply # go to the editor right away when replying set fcc_attach # keep attachments in copies of sent messages? set followup_to # http://larve.net/people/hugo/2000/07/ml-mutt set forward_format="Fwd: %s" # subject to use when forwarding messages set hdrs # include `my_hdr' lines in outgoing messages set nohelp # don't show the help line at the top set history=50 # number of lines of history to remember set honor_followup_to=yes # http://larve.net/people/hugo/2000/07/ml-mutt set include # always include messages when replying set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %s" # format of the index set mailcap_path="~/.mailcap:~/.muttmailcap:/usr/local/share/mailcap" set mail_check=100 # how often to poll for new mail set nomark_old # i don't care about whether a message is old set nomarkers # so long URIs can still be cut and pasted set mbox=~/mail/inbox # where to store read messages set menu_scroll # no implicit next-page/prev-page set mime_forward=ask-yes # prompt: forward as message/rfc822 attachment? set move=yes # don't ask about moving messages, just do it set pager_index_lines=8 # how many index lines to show in the pager set pager_stop # don't move to the next message on next-page set pipe_decode=no # don't mess with stuff I am piping set postponed=+postponed # mailbox to store postponed messages in set print=ask-no # ask me if I really want to print messages set read_inc=25 # show progress when reading a mailbox set record=+`hostname | cut -d. -f1`-outbox# default location to save outgoing mail set nosave_empty # remove files when no messages are left set sendmail_wait=2 # how long to wait before backgrounding sends set sort=threads # primary sorting method set quote_regexp="^([ \t]*(([A-Z]+)?[|:>!#%]))+" # match nonstandard quote chars # @@ stuff below this point could use some review/purging #set sort_aux=reverse-date-received # how to sort subthreads #set sort_aux=last-date # date of the last message in thread set sort_browser=unsorted # how to sort files in the dir browser set spoolfile=~/mail/inbox # where my new mail is located #set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %l]---(%s)-%>-(%P)---" #set status_on_top # some people prefer the status bar on top #set strict_threads # don't thread by subject set tilde # virtual lines to pad blank lines in the pager #set timeout=0 # timeout for prompt in the index menu set tmpdir=$HOME/misc/mm # where to store temp files #set to_chars=" +TCF" #set use_8bitmime # enable the -B8BITMIME sendmail flag set use_domain # don't qualify local addresses with $domain #set use_from # always generate the `From:' header field #set use_mailcap=yes # always use a mailcap entry when found #set verify_sig=no # don't automatically verify message signatures #set visual=vim # editor invoked by ~v in the builtin editor set nowait_key # don't prompt if a pipe returns normal status set write_inc=25 # show progress while writing mailboxes # only enable the following IFF you have sendmail 8.8.x or you will not # be able to send mail!!! #set dsn_notify='failure,delay' # when to return an error message #set dsn_return=hdrs # what to return in the error message # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Header fields I don't normally want to see # ignore * # this means "ignore all lines by default" # unignore header fields I want to see unignore from: subject to cc mail-followup-to date \ x-envelope-to \ x-diagnostic \ x-url # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Color definitions # color normal black default color hdrdefault cyan default color quoted blue default color quoted1 green default color quoted2 red default color quoted3 magenta default color signature red default color status magenta default color tree magenta default color tilde magenta default color message cyan default color markers magenta default color attachment yellow default color search black green color indicator brightyellow red color error brightred default color header black default ^Subject color header green default ^From color header cyan default ^(To|Cc): color header brightred default ^(X-Diagnostic): color body yellow default ^ # normal body text color body magenta default "(ftp|http|https)://[^ ]+" # point out URLs color body cyan default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses color underline green default color index yellow blue ~F # attributes when using a mono terminal #mono header underline ^(From|Subject): mono quoted bold # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Key bindings # # maps: # alias alias menu # attach attachment menu # browser directory browser # compose compose menu # index message index # pgp pgp menu # postpone postponed message recall menu # generic generic keymap for all of the above # editor line editor # pager text viewer # bind generic "\e<" first-entry # emacs-like bindings for moving to top/bottom bind generic \e> last-entry bind generic { top-page bind generic } bottom-page bind generic G last-entry macro index \cb |urlview\n # simulate the old browse-url function macro index I s+inbox\n macro pager I s+inbox\n macro index \et ":unset confirmcreate\n;s=train-spam\n:set confirmcreate\n" macro pager \et ":unset confirmcreate\n;s=train-spam\n:set confirmcreate\n" bind pager G bottom # just like vi and less bind index x noop bind index ^ current-top macro index i "c" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # User Defined Headers # #my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment #my_hdr X-Operating-System: `uname -a` # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify default filename when saving messages # # save-hook [!] # # is provided as default when saving messages from #save-hook mutt- =mutt-mail #save-hook aol\.com +spam #save-hook ^judge +diplomacy # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Multiple spool mailboxes # # mbox-hook [!] # # Read mail in is moved to when is # closed. #mbox-hook =mutt-users.in =mutt-users #mbox-hook +TEST +inbox # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Change settings based upon message recipient # # send-hook [!] # # is executed when sending mail to an address matching #send-hook mutt- 'my_hdr From: Mutt User ' #send-hook mutt- 'set signature=~/.sigmutt' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify where to save composed messages # # fcc-hook [!] # # is recipient(s), is where to save a copy #fcc-hook joe +joe #fcc-hook bob +bob # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Change settings based on mailbox # # folder-hook [!] # # is executed when opening a mailbox matching folder-hook . 'set sort=threads' folder-hook inbox 'set sort=mailbox-order' folder-hook !outbox 'unset read_only' folder-hook outbox 'set read_only' #folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"' #folder-hook =mutt my_hdr Revolution: \#9 # real comment #folder-hook . 'set reply_regexp="^re:[ \t]*"' # this mailing list prepends "[WM]" to all non reply subjects, so set # $reply_regexp to ignore it #folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Aliases # # alias
[ ,
... ] #alias exam "\# to annoy michael" #alias me Michael Elkins # me! #alias mutt-dev Mutt Development List # power users #alias mutt-users Mutt User List #alias mutt-announce Mutt Announcement List #alias wmaker WindowMaker Mailing List # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Mailboxes to watch for new mail # # mailboxes [ ... ] # # mailboxes stuff should be in ~/.muttrc-local # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify the order of the headers to appear when displaying a message # # hdr_order [ ... ] # hdr_order date from subject to cc # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Identify mailing lists I subscribe to # # lists [ ... ] # lists mutt-dev mutt-users # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Automatically use entries from ~/.mailcap to view these MIME types # # auto_view [ ... ] # auto_view application/x-gunzip auto_view text/html alternative_order text/plain text/html # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Scoring # # score # # 9999 and -9999 are special values which cause processing of hooks to stop # at that entry. If you prefix the score with an equal sign (=), the score # is assigned to the message and processing stops. #score '~f ^me@cs\.hmc\.edu$' 1000 #score '~t mutt | ~c mutt' =500 #score '~f aol\.com$' -9999 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # I use Mutt on several different machines, so I put local config commands # in a separate file so I can have the rest of the settings the same on all # machines. # source ~/.muttrc-local$localsuffix # config commands local to this site source ~/.mail-aliases # EOF