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