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