1 # $Id: sample.muttrc,v 3.4 2005/01/27 18:47:57 roessler Exp $
3 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5 # ME's personal .muttrc (Mutt 0.92.5)
7 # The format of this file is one command per line. Everything after a pound
8 # sign (#) is a comment, unless a backward slash (\) precedes it. Note: In
9 # folder-hook and send-hook you need to account for two levels of dequoting
13 # Note: $folder should be set _before_ any other path vars where `+' or `='
14 # is used because paths are expanded when parsed
16 #set folder=~/Mail # where i keep my mailboxes
18 #set abort_unmodified=yes # automatically abort replies if I don't
20 set alias_file=~/.mail_aliases # where I keep my aliases
21 #set allow_8bit # never do Q-P encoding on legal 8-bit chars
22 set arrow_cursor # use -> instead of hiliting the whole line
23 #set ascii_chars # use ASCII instead of ACS chars for threads
26 #set attribution="On %d, %n wrote:" # how to attribute replies
27 set autoedit # go to the editor right away when composing
28 #set auto_tag # always operate on tagged messages
29 #set charset="iso-8859-1" # character set for your terminal
30 set noconfirmappend # don't ask me if i want to append to mailboxes
31 #set confirmcreate # prompt when creating new files
32 set copy=yes # always save a copy of outgoing messages
33 set delete=yes # purge deleted messages without asking
34 set edit_headers # let me edit the message header when composing
35 #set editor="emacs -nw" # editor to use when composing messages
36 #set bounce=yes # don't ask about bouncing messages, just do it
37 #set fast_reply # skip initial prompts when replying
38 #set fcc_attach # keep attachments in copies of sent messages?
39 #set force_name # fcc by recipient, create if mailbox doesn't exist
40 #set forward_decode # weed and MIME decode forwaded messages
41 #set forward_format="[%a: %s]" # subject to use when forwarding messages
42 #set forward_quote # quote the header and body of forward msgs
43 #set hdr_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
44 set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index
45 #set hdrs # include `my_hdr' lines in outgoing messages
46 #set header # include message header when replying
47 set help # show the help lines
48 #set history=20 # number of lines of history to remember
49 #set hostname="mutt.org" # my DNS domain
50 set include # always include messages when replying
51 #set indent_string="> " # how to quote replied text
52 #set locale="C" # locale to use for printing time
53 #set mailcap_path="~/.mailcap:/usr/local/share/mailcap"
54 set nomark_old # i don't care about whether a message is old
55 set mail_check=10 # how often to poll for new mail
56 set mbox=+mbox # where to store read messages
57 #set menu_scroll # no implicit next-page/prev-page
58 #set metoo # remove my address when replying
59 set mime_forward # use message/rfc822 type to forward messages
60 set move=yes # don't ask about moving messages, just do it
61 #set pager=less # some people prefer an external pager
62 #set pager_context=3 # no. of lines of context to give when scrolling
63 #set pager_format="-%S- %-20.20f %s" # format of the pager status bar
64 set pager_index_lines=6 # how many index lines to show in the pager
65 #set pager_stop # don't move to the next message on next-page
66 #set pgp_strict_enc # use Q-P encoding when needed for PGP
67 set postponed=+postponed # mailbox to store postponed messages in
68 #set post_indent_string='---end quoted text---'
69 #set print=ask-yes # ask me if I really want to print messages
70 set print_command=/bin/false # how to print things (I like to save trees)
71 set noprompt_after # ask me for a command after the external pager exits
72 #set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text
73 set read_inc=25 # show progress when reading a mailbox
74 #set recall # prompt to recall postponed messages
75 set record=+outbox # default location to save outgoing mail
76 set reply_to # always use reply-to if present
77 #set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject:
78 #set resolve # move to the next message when an action is performed
79 #set reverse_alias # attempt to look up my names for people
80 set reverse_name # use my address as it appears in the message
82 set nosave_empty # remove files when no messages are left
83 #set save_name # save outgoing messages by recipient, if the
84 #set sendmail="/usr/lib/sendmail -oi -oem" # how to deliver mail
85 #set shell="/bin/zsh" # program to use for shell escapes
86 #set signature="~/.signature" # file which contains my signature
88 # I subscribe to a lot of mailing lists, so this is _very_ useful. This
89 # groups messages on the same subject to make it easier to follow a
90 # discussion. Mutt will draw a nice tree showing how the discussion flows.
91 set sort=threads # primary sorting method
93 #set sort_aux=reverse-date-received # how to sort subthreads
94 #set sort_aux=last-date # date of the last message in thread
95 set sort_browser=reverse-date # how to sort files in the dir browser
96 set spoolfile='~/mailbox' # where my new mail is located
97 #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)---"
98 #set status_on_top # some people prefer the status bar on top
99 #set strict_threads # don't thread by subject
100 set tilde # virtual lines to pad blank lines in the pager
101 #set timeout=0 # timeout for prompt in the index menu
102 #set tmpdir=~/tmp # where to store temp files
103 #set to_chars=" +TCF"
104 #set use_8bitmime # enable the -B8BITMIME sendmail flag
105 set nouse_domain # don't qualify local addresses with $domain
106 #set use_from # always generate the `From:' header field
107 set use_mailcap=yes # always use a mailcap entry when found
108 set pgp_verify_sig=no # don't automatically verify message signatures
109 #set visual=vim # editor invoked by ~v in the builtin editor
110 #set nowait_key # prompt when a pipe returns normal status
111 set write_inc=25 # show progress while writing mailboxes
113 # only enable the following IFF you have sendmail 8.8.x or you will not
114 # be able to send mail!!!
115 #set dsn_notify='failure,delay' # when to return an error message
116 #set dsn_return=hdrs # what to return in the error message
118 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
120 # Header fields I don't normally want to see
122 ignore * # this means "ignore all lines by default"
124 # I do want to see these fields, though!
125 unignore from: subject to cc mail-followup-to \
126 date x-mailer x-url # this shows how nicely wrap long lines
128 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
133 #color normal white default
134 color hdrdefault red default
135 color quoted brightblue default
136 color signature red default
137 color indicator brightyellow red
138 color error brightred default
139 color status yellow blue
140 color tree magenta default # the thread tree in the index menu
141 color tilde magenta default
142 color message brightcyan default
143 color markers brightcyan default
144 color attachment brightmagenta default
145 color search default green # how to hilite search patterns in the pager
147 color header brightred default ^(From|Subject):
148 color body magenta default "(ftp|http|https)://[^ ]+" # point out URLs
149 color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses
150 color underline brightgreen default
152 # attributes when using a mono terminal
153 #mono header underline ^(From|Subject):
156 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
162 # attach attachment menu
163 # browser directory browser
164 # compose compose menu
165 # index message index
167 # postpone postponed message recall menu
168 # generic generic keymap for all of the above
173 bind generic "\e<" first-entry # emacs-like bindings for moving to top/bottom
174 bind generic \e> last-entry
175 bind generic { top-page
176 bind generic } bottom-page
177 bind generic \177 last-entry
179 macro index \cb |urlview\n # simulate the old browse-url function
181 macro index S s+spam\n
182 macro pager S s+spam\n
184 #macro index \# /bug^M # search for bugs
185 #macro index "\"" ":set realname=\"real hairy macro\"^M:set ?realname^M" # and a comment to boot!
186 #macro index f1 :woohoo!
188 bind pager G bottom # just like vi and less
189 #macro pager \Ck "|pgp -kaf^M" # a comment is valid here
190 #macro pager X "|morepgp^M" # pipe PGP message to a script
192 #bind editor \cy eol # make ^Y jump to the end of the line
194 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
196 # User Defined Headers
199 #my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment
200 #my_hdr X-Operating-System: `uname -a`
202 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
204 # Specify default filename when saving messages
206 # save-hook [!]<pattern> <mailbox>
208 # <mailbox> is provided as default when saving messages from <pattern>
210 #save-hook mutt- =mutt-mail
211 #save-hook aol\.com +spam
212 save-hook ^judge +diplomacy
214 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
216 # Multiple spool mailboxes
218 # mbox-hook [!]<pattern> <mbox-mailbox>
220 # Read mail in <pattern> is moved to <mbox-mailbox> when <pattern> is
223 #mbox-hook =mutt-users.in =mutt-users
224 #mbox-hook +TEST +inbox
226 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
228 # Change settings based upon message recipient
230 # send-hook [!]<pattern> <command>
232 # <command> is executed when sending mail to an address matching <pattern>
234 #send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User <user@example.com>'
236 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
238 # Specify where to save composed messages
240 # fcc-hook [!]<pattern> <mailbox>
242 # <pattern> is recipient(s), <mailbox> is where to save a copy
247 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
249 # Change settings based on mailbox
251 # folder-hook [!]<pattern> <command>
253 # <command> is executed when opening a mailbox matching <pattern>
255 #folder-hook . 'set sort=date-sent'
256 #folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"'
257 #folder-hook =mutt my_hdr Revolution: \#9 # real comment
259 #folder-hook . 'set reply_regexp="^re:[ \t]*"'
261 # this mailing list prepends "[WM]" to all non reply subjects, so set
262 # $reply_regexp to ignore it
263 #folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"'
265 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
269 # alias <name> <address> [ , <address> ... ]
271 #alias exam "\# to annoy michael" <user@host>
272 #alias me Michael Elkins <me@mutt.org> # me!
273 alias mutt-dev Mutt Development List <mutt-dev@mutt.org> # power users
274 alias mutt-users Mutt User List <mutt-users@mutt.org>
275 alias mutt-announce Mutt Announcement List <mutt-announce@mutt.org>
276 alias wmaker WindowMaker Mailing List <wmaker@eosys.com>
278 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
280 # Mailboxes to watch for new mail
282 # mailboxes <path1> [ <path2> ... ]
285 mailboxes ! +mutt-dev +mutt-users +open-pgp +wmaker +hurricane +vim +ietf \
287 #mailboxes `echo $HOME/Mail/*`
289 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
291 # Specify the order of the headers to appear when displaying a message
293 # hdr_order <hdr1> [ <hdr2> ... ]
296 unhdr_order * # forget the previous settings
297 hdr_order date from subject to cc
299 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
301 # Identify mailing lists I subscribe to
303 # lists <list-name> [ <list-name> ... ]
305 lists mutt-dev mutt-users
307 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
309 # Automatically use entries from ~/.mailcap to view these MIME types
311 # auto_view <type> [ <type> ... ]
313 auto_view application/x-gunzip
314 auto_view application/x-gzip
316 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
320 # score <pattern> <value>
322 # 9999 and -9999 are special values which cause processing of hooks to stop
323 # at that entry. If you prefix the score with an equal sign (=), the score
324 # is assigned to the message and processing stops.
326 #score '~f ^me@cs\.hmc\.edu$' 1000
327 #score '~t mutt | ~c mutt' =500
328 #score '~f aol\.com$' -9999
330 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
332 # I use Mutt on several different machines, so I put local config commands
333 # in a separate file so I can have the rest of the settings the same on all
337 source ~/.muttrc-local # config commands local to this site