Initial import of mutt-ng.
[apps/madmutt.git] / contrib / sample.muttrc
1 # $Id: sample.muttrc,v 3.3 2003/04/02 08:43:24 roessler Exp $
2
3 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 #
5 # ME's personal .muttrc (Mutt 0.92.5)
6 #
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
10 # (see manual).
11 #
12
13 # Note: $folder should be set _before_ any other path vars where `+' or `='
14 # is used because paths are expanded when parsed
15 #
16 #set folder=~/Mail              # where i keep my mailboxes
17
18 #set abort_unmodified=yes       # automatically abort replies if I don't
19                                 # change the message
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
24 #set askbcc
25 #set askcc
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
81                                 # i am replying to
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
87
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
92
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
112
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
117
118 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
119 #
120 # Header fields I don't normally want to see
121 #
122 ignore *                # this means "ignore all lines by default"
123
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
127
128 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
129 #
130 # Color definitions
131 #
132
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
146
147 color header brightred default ^(From|Subject):
148 color body magenta default "(ftp|http)://[^ ]+" # point out URLs
149 color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+    # e-mail addresses
150 color underline brightgreen default
151
152 # attributes when using a mono terminal
153 #mono header underline ^(From|Subject):
154 mono quoted bold
155
156 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
157 #
158 # Key bindings
159 #
160 #       maps:
161 #               alias           alias menu
162 #               attach          attachment menu
163 #               browser         directory browser
164 #               compose         compose menu
165 #               index           message index
166 #               pgp             pgp menu
167 #               postpone        postponed message recall menu
168 #               generic         generic keymap for all of the above
169 #               editor          line editor
170 #               pager           text viewer
171 #               
172
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
178
179 macro index \cb |urlview\n      # simulate the old browse-url function
180
181 macro index S s+spam\n
182 macro pager S s+spam\n
183
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!
187
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
191
192 #bind editor \cy eol    # make ^Y jump to the end of the line
193
194 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
195 #
196 # User Defined Headers
197 #
198
199 #my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment
200 #my_hdr X-Operating-System: `uname -a`
201
202 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
203 #
204 # Specify default filename when saving messages
205 #
206 #       save-hook [!]<pattern> <mailbox>
207 #
208 # <mailbox> is provided as default when saving messages from <pattern>
209
210 #save-hook mutt- =mutt-mail
211 #save-hook aol\.com +spam
212 save-hook ^judge +diplomacy
213
214 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
215 #
216 # Multiple spool mailboxes
217 #
218 #       mbox-hook [!]<pattern> <mbox-mailbox>
219 #
220 # Read mail in <pattern> is moved to <mbox-mailbox> when <pattern> is
221 # closed.
222
223 #mbox-hook =mutt-users.in =mutt-users
224 #mbox-hook +TEST +inbox
225
226 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
227 #
228 # Change settings based upon message recipient
229 #
230 #       send-hook [!]<pattern> <command>
231 #
232 # <command> is executed when sending mail to an address matching <pattern>
233
234 #send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User <user@example.com>'
235
236 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
237 #
238 # Specify where to save composed messages
239 #
240 #       fcc-hook [!]<pattern> <mailbox>
241 #
242 # <pattern> is recipient(s), <mailbox> is where to save a copy
243
244 #fcc-hook joe +joe
245 #fcc-hook bob +bob
246
247 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
248 #
249 # Change settings based on mailbox
250 #
251 #       folder-hook [!]<pattern> <command>
252 #
253 # <command> is executed when opening a mailbox matching <pattern>
254
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
258
259 #folder-hook . 'set reply_regexp="^re:[ \t]*"'
260
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]*"'
264
265 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
266 #
267 # Aliases
268 #
269 #       alias <name> <address> [ , <address> ... ]
270
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>
277
278 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
279 #
280 # Mailboxes to watch for new mail
281 #
282 #       mailboxes <path1> [ <path2> ... ]
283 #
284
285 mailboxes ! +mutt-dev +mutt-users +open-pgp +wmaker +hurricane +vim +ietf \
286         +drums
287 #mailboxes `echo $HOME/Mail/*`
288
289 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
290 #
291 # Specify the order of the headers to appear when displaying a message
292 #
293 #       hdr_order <hdr1> [ <hdr2> ... ]
294 #
295
296 unhdr_order *                           # forget the previous settings
297 hdr_order date from subject to cc
298
299 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
300 #
301 # Identify mailing lists I subscribe to
302 #
303 #       lists <list-name> [ <list-name> ... ]
304
305 lists mutt-dev mutt-users
306
307 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
308 #
309 # Automatically use entries from ~/.mailcap to view these MIME types
310 #
311 #       auto_view <type> [ <type> ... ]
312
313 auto_view application/x-gunzip
314 auto_view application/x-gzip
315
316 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
317 #
318 # Scoring
319 #
320 #       score <pattern> <value>
321 #
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.
325
326 #score '~f ^me@cs\.hmc\.edu$' 1000
327 #score '~t mutt | ~c mutt' =500
328 #score '~f aol\.com$' -9999
329
330 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
331 #
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
334 # machines.
335 #
336
337 source ~/.muttrc-local  # config commands local to this site
338
339 # EOF