]> git.donarmstrong.com Git - mail.git/blob - .muttrc
update sdondly mail hook
[mail.git] / .muttrc
1
2 set realname='Don Armstrong'
3 source ~/.mail_aliases
4 set alias_file=~/.mail_aliases
5
6
7 unset allow_8bit        # use QP or Base64 if unset.
8 set allow_ansi          # allow ANSI color codes in messages.
9 unset arrow_cursor      # "->" as cursor (faster on slow networks).
10 unset ascii_chars       # Use ASCII chars for threading arrows.
11 unset askbcc            # ask to fill out Bcc on mesg-send?
12 unset askcc             # ask to fill out CC on mesg-send?
13 set attach_split        # handle every single attachment instead of concat
14 set autoedit            # start editor without asking for to, subject,...
15 unset auto_tag          # if something is tagged, run commands on tagged msgs.
16 unset beep              # beep on certain user errors and other errors
17 unset beep_new          # beep on new mail
18 set bounce_delivered    # unset => remove Delivered-To: when bouncing.
19 set check_new           # search for new messages in maildir/MH folders.
20 unset collapse_unread   # don't collapse threads with unread mails
21 unset confirmappend     # prompt for confirm when appending message to ex. mbox
22 set confirmcreate       # prompt for confirm when saving to non existing mbox
23 set delete_untag        # untag messages when marking them for deletion
24 set digest_collapse     # show digest parts in 'v' submenu
25 set duplicate_threads   # thread messages with same message-id together
26 set edit_headers        # put headers in editor when composing messages
27 set encode_from         # use Quoted-Printable, if ^From in a mail.
28 unset envelope_from     # don't set envelope from via -f option of sendmail
29 set fast_reply          # do not ask for to, subject,... when replying.
30 set fcc_attach          # store attachments too when doing a Fcc
31 unset fcc_clear         # encrypt Fcc of PGP encrypted messages?
32 unset text_flowed       # generate "text/plain; format=flowed"
33 set followup_to         # Add Mail-Followup-To header.
34 unset force_name        # outgoing mail to be saved in folder of "login name"
35 set forward_decode      # decode messages when forwarding without MIME
36 set forward_decrypt     # decrypt PGP message, when mime_forward and !mime_fw_d
37 unset forward_quote     # quote forwarded message, if not $mime_forward
38 set hdrs                # nohdrs implies not to write my_hdr into mail.
39 unset header            # quote full header on reply
40 unset help              # show help in first line of the display
41 set hidden_host         # when set, skip the host name part of hostname
42 unset hide_missing      # When set, mutt will not show the presence of missing messages in the thread tree.
43 set ignore_list_reply_to        # ignore Reply-To pointing back to mailinglist
44 unset implicit_autoview # use autoview, if a "copiousoutput" is in mailcap.
45 unset keep_flagged      # don't move flagged mail to $mbox via mbox-hook
46 set mailcap_sanitize    # remove ugly chars from mailcap % expands.
47 unset maildir_trash     # if set: use maildir trash flag instead of removing
48 unset mark_old          # mark new articles as old, when leaving mbox
49 set markers             # put a '+' at the beginning of wrapped lines.  
50 unset menu_scroll       # scroll on last line of menu (set) or do a nextpage?
51 unset meta_key          # Don't interpret Alt-x as ESC x
52 unset metoo             # should we keep ourselves in group replies?
53 set mh_purge            # remove messages marked as deleted from MH folders.
54 unset mime_forward_decode       # decode messages when forwarding with MIME
55 set pager_stop          # Don't jump to next message at end of message.
56 unset pipe_decode       # Weed headers and PGP-decode message before piping
57 unset pipe_split        # split tagged messages (or don't) when using "|"
58 #set pretty_spoolfile   # print $spoolfile as "!" instead of full pathname
59 set print_decode        # decode before sending to $print_command
60 unset print_split       # if set, run the print command for every single mail
61 set prompt_after        # display prompt after exit from pager
62 unset read_only         # folders not read only
63 unset reply_self        # if unset, a reply to yourself implies reply to other
64 set resolve             # go to next undeleted message after modifying actual
65 set reverse_alias       # use realname from reverse alias lookup
66 unset reverse_name      # Set "From" to address, where replied mail was sent to
67 unset reverse_realname  # Do not reuse realname from original message.
68 unset rfc2047_parameters        # don't encode RFC2047 parameters
69 unset save_address      # Use full mail adress (with domain) as default folder.
70 unset save_empty        # remove mailbox when last message is removed.
71 unset save_name         # Fcc, if ~/Mail/<to> exists.
72 unset sig_dashes        # Don't prepend "-- \n" to the signature
73 unset sig_on_top        # place signature above text (if set).
74 set smart_wrap          # wrap long lines at word boundary.
75 set sort_re             # set: only put a child in a thread, if starts with Re:
76 unset status_on_top     # status line at the top or button?
77 unset strict_threads    # thread only by In-Reply-To/References or by Subject.
78 set suspend             # Ctrl-Z is able to suspend mutt.
79 set thorough_search     # MIME decode before searching.
80 unset tilde             # Internal Pager: ~~~~ at and of message?
81 unset uncollapse_jump   # don't move pointer, when uncollapsing thread
82 unset use_8bitmime      # run sendmail 8.8.x with -B8BITMIME to enable 8bit 
83 set use_domain          # add $domain to all addresses without @host
84 set use_from            # generate a "From:" header (unless my_hdr From:)
85 #unset use_ipv6         # Only use IPv4 address resolution.
86 set user_agent          # Create User-Agent: Mutt/<Version> header.
87 unset wait_key          # Only "press a key" if return value non-zero
88 set weed                # weed headers, when forwarding with forward_decode
89 set wrap_search         # Wrap search to top/bottom.
90 unset write_bcc         # send Bcc: line to $sendmail 
91
92 set header_cache = ~/.mutt/header_cache
93
94
95
96 #
97 # Quadoptions 
98 #       set foo=yes
99 #  or   set foo=ask-yes
100 #  or   set foo=no
101 #  or   set foo=ask-no
102 #  or   reset foo (reset to compile time default)       
103
104 set abort_nosubject=no  # Abort, if message has no subject.
105 set abort_unmodified=no # Abort, if message wasn't edited.
106 set copy=yes            # ask to save a copy of outgoing message?
107 set delete=yes          # ask for confirmation when deleting messages?
108 set honor_followup_to=ask-yes   # Ask whether to honor Mail-Followup-To header.
109 set include=yes         # quote message, when replying
110 set mime_forward=ask-yes        # use MIME when forwarding mails.
111 set mime_forward_rest=ask-yes   # forward attachments w/o autoview from attmenu
112 set move=no             # Move mail-spool to $mbox?
113 set postpone=ask-yes    # ask for postponing when doing an Abort.
114 set print=ask-yes       # ask whether you really want to print.
115 set quit=yes            # ask before quitting.
116 set recall=no           # don't ask for using postponed message.
117 set reply_to=ask-yes    # Use or ignore Reply-To.
118
119
120 set certificate_file=~/.mutt/ca-certificates
121
122
123 #
124 # Integers:
125 #
126
127 set connect_timeout=30  # timeout (seconds) before reconnect. -1 => indefinite
128 set history=200         # Size of the history buffer
129 set mail_check=3        # time (in seconds) how often buffy checks for new mail
130 set pager_context=0     # number of lines, to display twice on PgUp/Down
131 set pager_index_lines=6 # add small message index at top of pager (4)
132 #set pager_index_lines=`zsh -c 'temp=($(stty size)) ; expr $temp[1] / 5 + 1'`
133 #set pager_index_lines=`((stty size 2>/dev/null||echo 24 80);echo s0 5/1+p)|dc`
134 set read_inc=10         # Mutt will notify when reading mailbox messages
135 set sendmail_wait=0     # >0 (wait seconds), 0 (forground), <0 (background)
136 set sleep_time=2        # pause (in seconds) while showing info messages
137 set timeout=60          # time in seconds, till Mutt looks for new mail
138 set wrapmargin=0        # margin left at right when doing smart line wrapping
139 set write_inc=10        # Mutt will notify when writing mailbox messages
140
141
142
143 #
144 # Sorting of the mails:
145 # (date-received, date-sent, from, mailbox-order, size, subject, threads, 
146 #  to, score) (and everything with a prefixed "reverse-")
147 # (sort_aux can be prefixed with "last-" to use last element in thread 
148 #  instead of first one)
149 #
150
151 set sort=threads        # sorting the mails in threads
152 set sort_aux=date-received      # sorting the threads
153
154
155
156 #
157 # Sortierung im File-Browser:
158 # (date, alpha, reverse-date, reverse-alpha)
159 #
160
161 set sort_browser=alpha
162
163
164 #
165 # Sorting of aliases:
166 # (alias, address, unsorted)
167 #
168 set sort_alias=alias
169
170
171 #
172 # Paths:
173 # ("unset" implies the compile time defaults)
174 #
175
176 #reset dotlock_program  # where to find mutt_dotlock (reset uses default)
177 set display_filter=""   # pipe message through this filter before displaying
178 set editor="~/bin/sane_editor +\`awk '/^$/ {print NR+1; exit}' %s\` %s"
179 set folder=~/Mail       # where are the mailboxes (+ and = are shortcuts)
180 #set folder="{luv}Mail" # where are the mailboxes (+ and = are shortcuts)
181 set from=""             # From: address (see send-hook my_hdr From)
182 reset ispell            # ispell binary (compile time default)
183 set mbox=+inbox         # not used if "set move=no"
184 set pager=builtin       # internal pager: "builtin" or e.g. "less -e" 
185 set postponed=+postponed        # folder for postponed messages
186 set print_command="sed s/\f// | a2ps -2 -g --strip 1 -Email"
187 set query_command="lbdbq %s"    # query tlr's little brothers database.
188 set record="~/Mail/outbox"              # Don't save a copy of outgoing messages (Fcc)
189 #reset sendmail         # Default-Sendmail with options ("-oem -oi")
190 reset shell             # Take shell from /etc/passwd 
191 set signature='~/.signature'    # Signature (See send-hook!)
192 reset spoolfile # Default spool-file (e.g. /var/spool/mail/user)
193 set spoolfile=+INBOX    # Maildir incoming file (~/Mail/incoming)
194 reset tmpdir            # tmp-Dir (use compile time default)
195 reset visual            # use $VISUAL as builtin editor.
196 set narrow_tree=yes
197
198
199 #
200 # Strings:
201 # ("reset" implies compile time defaults)
202 #
203
204 set attach_sep="\n"     # Separator to add between tagged attachements
205 set charset="utf-8"     # Charset of Terminal (for display)
206 set send_charset="utf-8"  # Charsets for outgoing messages.
207 reset escape            # ESC-char for internal editor (use default).
208 reset hostname          # FQDN (use default).
209 set indent_string="> "  # Quoting mails with this string.
210 #set mailcap_path='~/.mailcap'  # Use local mailcap only for mutt
211 reset mailcap_path
212 set mh_seq_flagged="flagged"    # Name of MH sequence used for flagged msgs.
213 set mh_seq_replied="replied"    # Name of MH sequence used for replied msgs.
214 set mh_seq_unseen="unseen"      # Name of MH sequence used for unseen msgs.
215 reset pipe_sep          # separator between tagged mails (default: \n)
216 reset realname          # get realname from /etc/passwd.
217 set simple_search="~f %s | ~C %s | ~s %s"       # default pattern (Fr|To|Cc|Su)
218 set status_chars="-*%A" # status of mbox (unchanged, changed, readonly, attach)
219 set to_chars=" +TCF "   # no to me, only to me, not only to me, Cc: to me, 
220                         # from me, to subscribed mailinglist.
221 # set locale="de_DE"    # locale settings (See send-hook section for changes!)
222
223
224
225 #
226 # Magic (mailbox type):
227 # allowed values: mbox, MMDF, MH, Maildir
228 #
229
230 set mbox_type=Maildir
231
232
233
234 #
235 # RegExps:
236 #
237 # (seems to be limited to 114 chars!)
238 #
239 alternates "\^(\
240 ((don(\\+.*)?@(.*\\.)?(donarmstrong|anylevel|oneinfinity)\\.(com|org|net))\
241 |(don(\\+.*)?@(.*\\.)?(rzlab|pellam)\\.ucr\\.edu)\
242 |(don(\\+.*)?@(.*\\.)?debian\\.org)\
243 ))$"                            # alternate usernames
244
245 set mask="."                    # Show these files in the file browser
246 #set mask="!^\\.[^.]"           # Default
247
248 set gecos_mask="^[^,]*"         # Parse the GECOS field from passwd file.
249
250 set quote_regexp="^( {0,5}[>|:%]| {0,5}[a-z0-9]+[>|]+)+"
251                                 # for color quotes
252
253 set reply_regexp="^((re(\\^[0-9])? ?:|a(nt)?w(ort)?:|wg:|\\(fwd\\))[ \t]*)*"
254                         # Subject prefixes (removed on answering and threading)
255 #set reply_regexp="^(re|aw):[ \t]+"     # Default
256
257 set smileys="(>From )|(:[-^]?[][)(><}{|/DP])"
258                         # Special chars, which are not quote regexps, but :-)
259
260
261 #
262 # Format-Strings:
263
264
265 set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z"
266                         # control output of %d in index_format. strftime(3)
267                         # here: Monday Dec 06, 1997 at 08:30:42pm CET
268
269 # Allows escape sequences: 
270 #     (\n = newline, \r = carriage-return, \t = tab, \f = formfeed)
271
272 # %a Author address     %b original mbox        %B destination list or mbox
273 # %c bytes in message   %C Message number
274 # %d date and time in senders timezone ($date_format)
275 # %D date and time in local timezone ($date_format)
276 # %e curr. msg no in thread     %E number of msgs in curr. thread
277 # %f address+real name  %F address+realname (unless self)
278 # %i Message-ID         %l number of lines      %L list-from function
279 # %m # of msg in mbox   %M number of hidden messages in collapsed thread
280 # %n author real name   %N score                %s subject of msg     
281 # %S status of message (N/D/d/!/*/r)            
282 # %t `to:' field        %T char from tochars    %u login name of author
283 # %v author's firstname %y X-Label              %Y X-Label, if changed
284 # %Z message status flags
285 # %>X     right justify the rest of the string and pad with character "X"
286 # %|X     pad to the end of the line with character "X"
287 # %{<s>} sent time+date in senders timezone  (<s> is an strftime(3) expression)
288 # %[<s>] sent time+date in local timezone    (<s> is an strftime(3) expression)
289 # %(<s>) receive time+date in local timezone (<s> is an strftime(3) expression)
290 # %<<s>> current time in local timezone      (<s> is an strftime(3) expression)
291 #        if first char in <s> is "!", do not use locale.
292
293 set forward_format="(fwd) %s"
294                         # subject of forwarded mails
295
296 spam 'X-Spam-Level: \*\*\*\*\*\*\*\*' 8
297 spam 'X-Spam-Level: \*\*\*\*\*\*' 6
298 spam 'X-Spam-Level: \\*\\*\\*' 3
299 spam 'X-Spam-Level: \*\*' 2
300 spam 'X-Spam-Level: \*' 1
301 #set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %?H?[%H] ?%s"
302 set index_format="%4C %Z %[!%k:%M %m.%d.%y] %-15.15F (%?M?C%3M&%4c?) %?H?[%H] ?%s"
303                         # message line in the index
304                         # don't use locales here, because it's not needed and 
305                         # it runs in a memory leak in Linux libc5 
306                         # use %[!...] or %{!...} instead
307 # In local folders display lines:
308 #folder-hook . \
309 #       'set index_format="%4C %Z %[!%d.%m.%y] %-15.15F (%?M?C%3M&%4l?) %s"'
310 # In IMAP folders display KByte (because lines are not available):
311 #folder-hook ^{ \
312 #       'set index_format="%4C %Z %[!%d.%m.%y] %-15.15F (%?M?C%3M&%4c?) %s"'
313
314 set message_format="%-.16n: %s"
315                         # string for message/rfc822 in attachment list
316
317 set pager_format="-%Z- %C/%m [%[%H:%M]] %-17.17n   %s"
318                         # status line of the pager
319                         # (show time here, date can be seen in "pil")
320
321 set post_indent_string=""       # Footer (after quotes, before signature).
322
323
324 set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
325                         # Default Reply-Intro (See send-hook for changes!)
326
327 # %C current number     %d last modified        %f filename
328 # %F permissions        %g group                %l number of hard links
329 # %N "N" if new mail    %s size in bytes        %t "*" if tagged
330 # %u owner name         %>X right justify the rest and pad with "X"
331 # %|X pad to the end of the line with character "X"
332 set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
333                         # file browser menu
334
335
336 #
337 # status_format
338 #
339
340 # %b # of folders with new mail                 %d # of deleted msgs
341 # %f mbox path          %F # of flagged msgs    %h hostname
342 # %m total# of messages %M # of shown msgs      %n # of new msgs
343 # %l bytes in mbox      %L size of limited msgs %o # of old msgs
344 # %p # of postponed. msgs       %P percentage of the display             
345 # %r readonly/changed   %s sorting method       %S sort_aux method
346 # %t # of tagged msgs   %u # of unread msgs     %v Mutt version
347 # %>X = right justify and pad with "X"   %|X = pad with "X" to end of line
348 # %?<sequence_char>?<optional_string>?   print <opt> iff <seq> is non zero
349 # %?<sequence_char>?<if_string>&<else_string>?
350
351 #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/%S-%>-%P-"
352 #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?%L/?%?l?%l?]--(%f)--%s/%S-%>-%P-"
353 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-"
354
355
356 #
357 # alias_format
358 # (format of data displayed for the alias menu)
359 # %a alias name    %n index number    %r address    %t tag-character 
360 #
361 set alias_format="%4n %2d %t %-12a  %r"
362
363
364 #
365 # attach_format
366 # (controls the look of the compose and attach menu)
367 # %c = Content-Type     %C = Charset
368 # %d = description      %D = deleted flag
369 # %e = MIME content-transfer-encoding           %f = filename   
370 # %I = disposition (I=inline, A=attachment)
371 # %m = major MIME type  %M = MIME subtype       %n = attachment number
372 # %s = size             %t = tagged flag        %T = tree
373 # %u = unlink
374 # %>X = right justify and pad with "X"   %|X = pad with "X" to end of line
375 #
376 #set attach_format="%u%D%t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
377 set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
378
379
380 #
381 # compose_format
382 # (Controls the status line of the compose menu)
383 # %a = number of attachments    %h = local hostname
384 # %l = approx. size of msg      %v = Mutt version
385 #
386 set compose_format="-- %v-- Compose  [Approximate Message Size: %l   Attachments: %a]%>-"
387
388
389 #
390 # Mixmaster Support (only when --with-mixmaster)
391 #
392 # %n = number   %c = capabilities       %s = short name         %a = address
393 #set mix_entry_format="%4n %c %-16s %a" # Format of mixmaster list
394 #set mixmaster="mixmaster"              # Mixmaster binary
395
396
397
398 #
399 # Pretty Good Privacy (PGP):
400 #
401
402 set pgp_ignore_subkeys  # On OpenPGP keys only show the main key, not the sub.
403 set pgp_autosign        # pgp sign every outgoing mail. (send-hook?)
404 unset pgp_autoencrypt   # pgp encrypt every outgoing mail. (send-hook?)
405 set pgp_create_traditional=no   # Use old-style PGP? (don't do it!)
406 set pgp_replyencrypt    # Encrypt replies on encrypted mail
407 set pgp_replysign       # Sign replies on signed mail
408 set pgp_replysignencrypted      # Sign replies on encrypted mail
409 unset pgp_retainable_sigs       # disable retainable signatures.
410 set pgp_verify_sig=yes  # ask me whether I want to check a pgp signature
411 set pgp_timeout=7200    # forget PGP passphrase after 7200 seconds (=2 hours)
412 set pgp_strict_enc      # allway use QP enc. with PGP.
413 unset pgp_long_ids      # display 64bit PGP key-ids (don't change this!)
414 set pgp_show_unusable   # show unusable PGP keys in menu
415 set pgp_use_gpg_agent   # Use gpg_agent
416
417 # %n = number   %k = key id     %K = key id of the principal key
418 # %u = user id  %a = algorithm  %A = algorithm of the princ. key
419 # %l = length   %L = length of the princ. key   
420 # %f = flags    %F = flags of the princ. key    
421 # %c = capabilities             %C = capabilities of the princ. key
422 # %t = trust/validity of the key-uid association
423 #set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
424 set pgp_entry_format="%4n %t%f %[%y/%m/%d] %4l/0x%k %-4a %2c %u"
425
426 #
427 # Sorting of PGP keys:
428 # (address, keyid, date, trust) and reverse-*
429 #
430 set pgp_sort_keys=trust
431
432
433
434
435 #
436 # Delivery Status Notification (DSN)
437 # (this may cause problems with some MTAs, so comment it out, if necessary)
438 #
439
440 set dsn_notify="failure,delay"
441 set dsn_return="hdrs"
442
443
444 #
445 # score <pattern> <value>
446 # unscore <pattern>
447 #
448 # (pattern is something like '~A' (all), '~f aol\.com$', '~s mutt' ...)
449 # (value is between -9999 and 9999. A prefix '=' sets otherwise incr/decr)
450 #
451 unscore *
452
453 unset score                     # turn off scoring
454 set score_threshold_delete=-1   # mark messages with score <=value deleted
455 set score_threshold_flag=9999   # mark messages with score >=value flagged
456 set score_threshold_read=-1     # mark messages with score <=value read
457
458
459 #
460 # Show or suppress headers:
461
462
463 ignore lines precedence status
464 ignore nntp-posting-host path old-return-path received >received references
465 ignore content- errors-to in-reply-to mime-version
466 ignore resent-message-id return-path xref path
467 ignore x-keywords x-uid x-ftn-via x-ftn-domain x-ftn-seen-by x-ftn-path
468 ignore x-gateway x-loop x-sender x-priority
469 ignore mbox-line x-pop3-rcpt x-mailing-list x400- dl-expansion-history
470 ignore priority alternate-recipient x-zc-via 
471 ignore x-received x-envelope-sender x-return-path x-authentication-warning
472 ignore resent-message-id resent-sender resent-date resent-cc
473 ignore x-envelope-from x-envelope-to x-delivery-time
474 ignore x-egroups-return list-unsubscribe list-archive list-help
475 ignore from
476 unignore from:
477
478
479
480 #
481 # Extra headers that I would like added to all my outgoing mail messages.
482 # Attention: !!! No comments in the (un)my_hdr lines !!!
483 #
484
485 unmy_hdr *              
486                                         # remove all extra headers first.
487
488 # "
489 # MIME-Types which should be automatically displayed. If a copiousoutput
490 # exists, use it and display it in internal pager.
491 # (if $implicit_autoview is set, this is automated for MIME types where
492 #  an entry with copiousoutput exists in the mailcap)
493 #
494
495 auto_view text/richtext text/html text/x-sgml text/x-vcard text/x-sh \
496           text/x-csrc text/tex text/-xtex text/english \
497           application/x-tex application/x-dvi \
498           application/x-gzip-dvi application/x-diff-gzip application/x-gzip \
499           application/x-gunzip application/x-bzip2 \
500           application/x-cpio application/x-gtar \
501           application/x-tar application/x-tar-gz application/x-rar-compressed \
502           application/x-zip-compressed application/zip application/x-csh \
503           application/x-sh application/x-script application/x-shellscript \
504           application/x-latex application/x-tex application/x-shar \
505           application/x-troff application/x-troff-man application/x-troff-me \
506           application/x-pgp-message application/msword \
507           application/ms-tnef application/ms-word application/rtf \
508           application/octet-stream application/x-tcl application/x-perl \
509           application/x-debian-package message/partial
510
511
512 #
513 # List of MIME-Types to give a priority when reading multipart/alternative
514 #
515
516 alternative_order text/enriched text/plain text/html
517
518
519
520 #
521 # mbox-hook pattern mailbox
522 # (save all "read" messages from pattern to mailbox)
523 #
524
525 #
526 # monochrom terminals:
527 # (none, bold, underline, reverse, standout)
528 #
529 #    object             attribute
530 #
531 mono normal             none            # normal text
532 mono indicator          reverse         # actual message
533 mono tree               none            # thread arrows
534 mono status             reverse         # status line
535 mono error              bold            # errors
536 mono message            none            # info messages
537 mono quoted             bold            # quoted text
538 mono signature          none            # signature
539 mono attachment         underline       # MIME attachments
540 mono search             reverse         # search matches
541 mono tilde              none            # ~ at bottom of msg
542 mono markers            bold            # + at beginning of wrapped lines
543 mono hdrdefault         none            # default header lines
544 mono bold               bold            # hiliting bold patterns in body
545 mono underline          underline       # hiliting underlined patterns in body
546 #
547 #    object      attribute      RegExp
548 #
549 mono header      bold           "^(from|subject):"
550 #mono body       underline      "((ftp|http|https)://|news:)[^ >)\"\t]+"
551 mono body        underline      "((ftp|http|https)://|(file|news):|www\\.)[-a-z0-9_.:]*[a-z0-9](/[^][{} \t\n\r\"<>()]*[^][{} \t\n\r\"<>().,:!])?/?"
552 mono body        underline      "[-a-z_0-9.]+@[-a-z_0-9.]+"
553 mono body        bold           "(^| )\\*[-a-z0-9]+"
554
555 ## ========================================================================
556
557 ## AUTO_VIEW - tell mutt which "content types" to view with
558 ## the command given in the $HOME/.mailcap file.
559 ## ========================================================================
560
561 #auto_view text/html text/enriched application/x-gunzip application/postscript /gif application/x-tar-gz application/pgp-signature image/*
562
563 ## ========================================================================
564 ## BIND - bind commands to keys.
565 ## ========================================================================
566
567 ## ========================
568 ## Bindings for attach menu
569 ## ========================
570
571 bind attach ' ' select-entry
572
573 ## ============================
574 ## Bindings for index and pager
575 ## ============================
576
577 ## Jumping to the next mail that is still unread.
578 bind index   \t    next-new
579 bind pager   \t    next-new
580 bind index   ' '   next-unread
581 bind pager   ' '   next-unread
582 bind index   V     show-version
583 bind pager   V     show-version
584 bind index   A     create-alias
585 bind pager   A     create-alias
586 #macro index  S     <pipe-message>add_spammer.pl<enter>s="SPAM\n"
587 #macro pager  S     <pipe-message>add_spammer.pl<enter>s="SPAM\n"
588 #macro index  X     |"spamassassin -r \n"
589 #macro pager  X     |"spamassassin -r \n"
590 macro index  S     "s=spam/MANUALSPAM\r"
591 macro pager  S     "s=spam/MANUALSPAM\r"
592 macro index  X     "<copy-message>=spam/HAM\r"
593 macro pager  X     "<copy-message>=spam/HAM\r"
594 macro index  "\\T"   "<copy-message>=TODO\r"
595 macro pager  "\\T"   "<copy-message>=TODO\r"
596
597 ## ==============================================
598 ## Bindings for editing and reloading the .muttrc
599 ## ==============================================
600
601 macro generic   ,ve   "!gnuclient ~/.muttrc\n"
602 macro generic   ,vu   ":source ~/.muttrc\r"
603 macro generic   ,va   "!gnuclient ~/.mail_aliases \n"
604
605 ## ======================
606 ## Bindings for index
607 ## ======================
608
609 bind index   P          recall-message
610 bind index   s          save-message
611 bind browser x          check-new
612 bind index   <pagedown> next-page
613 bind index   <pageup>   previous-page
614 bind index   x          sync-mailbox
615 bind index   a          tag-prefix
616 bind index   \;         tag-entry
617
618 macro index  \cb        "|urlview\n"
619 macro index  ,l         "l~N ! ~p\n"
620 macro index  ,n         "l~N\n"
621
622 # ======================================
623 # Quickly change to my favorite folders:
624 # ======================================
625 macro index  "\\d"  "c=lists/debian-devel\r"
626 macro index  "\\o"  "c=outbox\r"
627 macro index  "\\t"  "c=TODO\r";
628 macro index  "\\b"  "c=lists/debian_bugs\r"
629 macro index  I      "c!\n" "Go to Inbox"
630
631 macro pager  "\\d"  "c=lists/debian-devel\r"
632 macro pager  "\\t"  "c=TODO\r";
633 macro pager  "\\o"  "c=outbox\r"
634 macro pager  "\\b"  "c=lists/debian-bugs\r"
635 macro pager  I      "c!\n" "Go to Inbox"
636
637 # ===========================
638 #    Bindings for pager
639 # ===========================
640
641 bind pager     /   search
642 bind pager     L   list-reply
643 bind pager     b   bounce-message
644 bind pager     f   forward-message
645 bind pager     m   mail
646 bind pager     g   group-reply
647 bind pager     j   next-line
648 bind pager     k   previous-line
649 bind pager     :   enter-command
650 bind pager     p   previous-undeleted
651 bind pager     n   next-undeleted
652 bind pager     \n  next-unread
653 bind pager     \cf forget-passphrase
654 #bind compose   \n  send-message
655 bind compose   s   send-message
656 bind pager ,p print-message
657
658 macro pager J "!gpg --keyserver wwwkeys.eu.pgp.net --recv-key " "Get PGP Key"
659 macro pager K "!gpg --lsign-key " "Sign PGP Key"
660
661 # funky gimmick, but I never use it =)
662 #macro pager ,s "|festival --tts\r"
663
664 #macro index M "c{imap1.bonn.id-pro.net}\n"
665
666 macro pager "i" "<sync-mailbox><change-folder>?<toggle-mailboxes>"
667 macro index "i" "<sync-mailbox><change-folder>?<toggle-mailboxes>"
668
669 ## =====================================
670 ## Tom's cursor movement system [tm] ;-)
671 ## =====================================
672
673 bind  pager   <up>     previous-line
674 bind  pager   <down>   next-line
675 bind  pager   <left>   exit 
676 bind  pager   <right>  view-attachments
677 bind  attach  <left>   exit
678 bind  attach  <right>  view-attach
679 bind  index   <right>  display-message
680 # Pre mutt 1.3.x, you'll want this instead:
681 #macro index   <left>   "c?"
682 macro index   <left>   "c?<tab>"
683 bind  browser <right>  select-entry
684 bind  browser <left>   exit
685
686 ## =================
687 ## Color definitions
688 ## =================
689 color attachment white     magenta
690 color body      brightgreen       default  "ftp://[^ ]*"
691 color body     brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]"
692 color body      brightgreen       default  "<URL:[^ ]*>"
693 color bold      green      default
694 color error     red        default
695
696 color header    yellow     default  "^from"
697 color header    green      default  "^from:"
698 color header    green      default  "^to:"
699 color header    green      default  "^cc:"
700 color header    green      default  "^date:"
701 color header    yellow     default  "^newsgroups:"
702 color header    yellow     default  "^reply-to:"
703 color header    brightcyan default  "^subject:"
704 color header    red        default  "^x-spam-rule:"
705 color header    yellow     default  "^x-mailer:"
706 color header    yellow     default  "^message-id:"
707 color header    yellow     default  "^Organization:"
708 color header    yellow     default  "^Organisation:"  
709 color header    yellow     default  "^User-Agent:"  
710 color header    yellow     default  "^message-id: .*pine"
711 color header    yellow     default  "^X-Fnord:"
712 color header    yellow     default  "^X-WebTV-Stationery:"
713 color header    yellow     default  "^X-Message-Flag:"
714 color header    yellow        default  "^X-Diagnostic:"
715
716 color indicator white      blue
717 color markers   red        default
718 color message   white      blue
719
720 ## ==================================================
721 ## Colorizing the body of messages (ie in the pager)
722 ## ==================================================
723
724 color normal    white     default  # pager body
725
726 #  Coloring quoted text - coloring the first 7 levels:
727 color quoted    cyan      default
728 color quoted1   yellow    default
729 color quoted2   red       default
730 color quoted3   green     default
731 color quoted4   cyan      default
732 color quoted5   yellow    default
733 color quoted6   red       default
734 color quoted7   green     default
735
736 color signature brightred      default
737 color status    white          blue
738 color tilde     blue           default
739 color tree      brightmagenta  default
740 color underline yellow         default
741 color body      yellow         default  "[;:]-[)/(|]"  # colorise smileys
742 color body      yellow         default  "[;:][)/(|]"
743 color body      brightblue     default  "(http|ftp|news|telnet|finger)://[^ ]*"
744
745 color index     yellow         default  ~N      # New
746 color index     yellow         default  ~O      # Old
747 # color index     brightgreen    default  '~s tgil'
748 # color index     cyan           default  '~s gilbertt ~f cvs-commits-list'
749 color index     brightgreen    default  '~p'    # mail to myself
750 color index     brightcyan    default  '~P'    # mail from myself
751 color index     magenta        default  ~F      # Flagged
752 color index     blue           default  ~T      # Tagged
753 color index     red            default  ~D      # Deleted
754
755 # Headers to ignore/see
756 # Ignore everything but the really important lines:
757 ignore *
758 unignore from: date subject to cc reply-to:
759 unignore organization organisation
760 unignore user-agent: x-agent: x-mailer: x-newsreader:
761 unignore newsgroups: posted-to: x-spam-rule:
762 # These can provide amusement
763 unignore X-Fnord: X-WebTV-Stationery: X-Message-Flag:
764 # procmail rules for listmaster
765 unignore X-Diagnostic:
766
767 # ordering of headers in the pager
768 unhdr_order *
769 hdr_order Date: From: To: Cc: X-Newsreader: X-Mailer: Organization: Organisation: User-Agent: X-Fnord: X-WebTV-Stationery: X-Message-Flag: X-Diagnostic: Newsgroups: Reply-To: Subject: x-spam-rule:
770
771 ## "alternates" tells mutt about your addresses.  Mutt thus can show mails
772 ## addresses to you in the folder index as "personal" using the flag '+'.
773 #set alternates=((tom|gilbertt)@snowman.net|.*@linuxbrit.*|.*@offended.*|giblet@lunixbrat.com)
774
775 # Set the defaults for folders:
776 folder-hook .    set timeout=30
777 folder-hook .    set sort=threads
778 folder-hook .    set sort_aux=date-received
779 # When I'm in the main index, check more often :)
780 #folder-hook "!"  set timeout=5
781 # Mail in my inbox is more date than thread sensitive...
782 folder-hook "!"  set sort=date-received
783 folder-hook "sent"  set sort=date-received
784
785 #folder-hook .    set signature=~/.signature
786
787 #folder-hook .    unmy_hdr *
788 folder-hook .    my_hdr "From: Don Armstrong <don@donarmstrong.com>"
789 folder-hook .    set signature="~/.signature" 
790 folder-hook .    unmy_hdr "Reply-To:"
791 folder-hook .    unmy_hdr "Cc:"
792
793 # bug hooks
794 reply-hook ~A unmy_hdr "X-Debbugs-No-Ack";
795 #reply-hook "~h X-Debian-PR" my_hdr "X-Debbugs-No-Ack: yes no ack";
796 send-hook ~A unmy_hdr "X-Debbugs-No-Ack";
797 send-hook "(~C submit@bugs.debian.org |~C control@bugs.debian.org |~C \d+@bugs.debian.org)" my_hdr "X-Debbugs-No-Ack: yes no ack"
798
799 # Fix the Mail-Followup-To for sdondley
800 reply-hook . unmy_hdr "Mail-Followup-To";
801 reply-hook "(~f sdondley@gmail.com|~f s@gmail.com|~f s@dondley.com)" my_hdr "Mail-Followup-To: Don Armstrong <don@donarmstrong.com>";
802
803 # Debian folder hooks
804 folder-hook debian my_hdr "From: Don Armstrong <don@debian.org>"
805 folder-hook bdo_role my_hdr "From: Don Armstrong <don@debian.org>"
806 folder-hook bdo_role my_hdr "Reply-To: owner@bugs.debian.org"
807 folder-hook bdo_role my_hdr "Cc: owner@bugs.debian.org"
808 folder-hook 0_ldo_role my_hdr "From: Don Armstrong <don@debian.org>"
809 folder-hook 0_ldo_role my_hdr "Reply-To: listmaster@lists.debian.org"
810 folder-hook 0_ldo_role my_hdr "Cc: listmaster@lists.debian.org"
811
812
813 #reply-hook '~C don@debian.org' my_hdr "From: Don Armstrong <don@debian.org>"
814
815 macro generic   ,ad   my_hdr "From: Don Armstrong <don@debian.org>"
816 macro generic   ,an   my_hdr "From: Don Armstrong <don@donarmstrong.com>"
817
818 send-hook ~A '`/home/don/lib/signature_stuff/pick_a_quote.pl` set-signature "~/.signature"'
819
820
821 open-hook   \\.gz$ "gzip -cd %f > %t" 
822 close-hook  \\.gz$ "gzip -c %t > %f" 
823 append-hook \\.gz$ "gzip -c %t >> %f"
824
825
826
827
828 ## "lists" adds a list of mailing lists addresses
829 ## so mutt knows about these for showing them in the folder indes
830 ## and to allow replying to them with the command "list-reply".
831 ## The first part of the address (up to the @) should be used here.
832 unlists *      # remove old entries first
833 lists `cd ~/Mail/lists && echo *`
834 lists `cd ~/Mail/bugs && echo *`
835
836 unsubscribe *
837 subscribe `cd ~/Mail/lists && echo *`
838 subscribe `cd ~/Mail/bugs && echo *`
839
840 ## "mailboxes" defines the list of folders to be checked for new mail
841 ## Mutt both can show the number of mailboxes with new mail in the index and
842 ## you can cycle through these after giving the "change-folder" command.  :-)
843 mailboxes +INBOX
844 mailboxes +TODO
845 mailboxes +bdo_role
846 mailboxes +0_ldo_role
847 mailboxes +oftc
848 #mailboxes +lists !
849 #mailboxes +bugs !
850 #mailboxes +sms +SPAM +work
851 mailboxes `for file in ~/Mail/lists/*; do echo -n "+lists/$(basename $file) "; done`
852 mailboxes `for file in ~/Mail/bugs/*; do echo -n "+bugs/$(basename $file) "; done`
853
854
855 ## FCC Hooks
856
857
858
859