# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # ME's personal .muttrc (Mutt 0.89) # # The format of this file is one command per line. Everything after a pound # sign (#) is a comment, unless a backward slash (\) precedes it # # Note: $folder should be set _before_ any other path vars where `+' or `=' # is used because paths are expanded when parsed # #set folder=~/mail # where i keep my mailboxes set ssl_use_tlsv1=no set folder=imaps://mailhost/mail # where i keep my mailboxes set abort_unmodified=yes # automatically abort replies if I don't # change the message set alias_file=~/.mail_aliases # where I keep my aliases #set allow_8bit # never do Q-P encoding on legal 8-bit chars #set arrow_cursor # use -> instead of hiliting the whole line set ascii_chars # use ASCII instead of ACS chars for threads #set askbcc set askcc set attribution="On %d, %n wrote:" # how to attribute replies set autoedit # go to the editor right away when composing #set auto_tag # always operate on tagged messages #set charset="iso-8859-1" # character set for your terminal set noconfirmappend # don't ask me if i want to append to mailboxes #set confirmcreate # prompt when creating new files set copy=yes # always save a copy of outgoing messages set delete=yes # purge deleted messages without asking set edit_hdrs # let me edit the message header when composing set editor=vi # editor to use when composing messages set followup_to set honor_followup_to=yes #set fast_reply # skip initial prompts when replying #set fcc_attach # keep attachments in copies of sent messages? #set force_name # fcc by recipient, create if mailbox doesn't exist #set forw_decode # weed and MIME decode forwaded messages #set forw_format="[%a: %s]" # subject to use when forwarding messages #set forw_quote # quote the header and body of forward msgs #set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index set hdr_format="%4C %Z %{%b %d} %-15.15F (%4l) %s" #set hdrs # include `my_hdr' lines in outgoing messages #set header # include message header when replying set help # show the help lines #set history=20 # number of lines of history to remember set hostname="pisoftware.com" # my DNS domain set include # always include messages when replying #set indent_str="> " # how to quote replied text #set locale="C" # locale to use for printing time set mailcap_path="~/.mailcap:/etc/mailcap" set nomark_old # i don't care about whether a message is old set mail_check=90 # how often to poll for new mail #set mbox=+read-mail # where to store read messages #set menu_scroll # no implicit next-page/prev-page #set metoo # remove my address when replying set mime_forward=ask-yes # use message/rfc822 type to forward messages set move=yes # don't ask about moving messages, just do it #set pager=less # some people prefer an external pager #set pager_context=3 # no. of lines of context to give when scrolling #set pager_format="-%S- %-20.20f %s" # format of the pager status bar set pager_index_lines=6 # how many index lines to show in the pager #set pager_stop # don't move to the next message on next-page #set pgp_strict_enc # use Q-P encoding when needed for PGP set postponed=+postponed # mailbox to store postponed messages in #set print=ask-yes # ask me if I really want to print messages set print_cmd="/usr/bin/muttprint -2" # how to print things (I like to save trees) set noprompt_after # ask me for a command after the external pager exits #set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text set read_inc=25 # show progress when reading a mailbox #set recall # prompt to recall postponed messages set record==sent-mail # default location to save outgoing mail #set reply_to # always use reply-to if present set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject: #set resolve # move to the next message when an action is performed #set reverse_alias # attempt to look up my names for people set nosave_empty # remove files when no messages are left #set save_name # save outgoing messages by recipient, if the set sendmail="/usr/lib/sendmail -oi -oem -t" # how to deliver mail #set sendmail="/mnt/home/bin/linux/muttmail.pl" # how to deliver mail #set sendmail="/mnt/home/bmarshal/scripts/muttmail.pl" # how to deliver mail #set sendmail_bounce="/usr/lib/sendmail -oi -oem" # how to bounce mail #set shell="/bin/zsh" # program to use for shell escapes #set signature="~/.signature" # file which contains my signature #set query_command="~/bin/mpadq %s" set query_command="lbdbq %s" #set query_command="/mnt/home/linux/bin/pi-ldap-query %s" #set query_command="/usr/lib/mutt/debian-ldap-query %s" # I subscribe to a lot of mailing lists, so this is _very_ useful. This # groups messages on the same subject to make it easier to follow a # discussion. Mutt will draw a nice tree showing how the discussion flows. set sort=threads # primary sorting method #set sort_aux=reverse-date-received # how to sort subthreads #set sort_aux=last-date # date of the last message in thread #set sort_browser=reverse-date # how to sort files in the dir browser #set spoolfile='~/mail/Inbox' # where my new mail is located set spoolfile='imaps://mailhost/mail/Inbox' # where my new mail is located #set spoolfile={morris}mail/Inbox # where my new mail is located #set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %l]---(%s)%|-" #set status_on_top # some people prefer the status bar on top #set strict_threads # don't thread by subject #set tilde # virtual lines to pad blank lines in the pager set timeout=15 # timeout for prompt in the index menu #set tmpdir=~/tmp # where to store temp files #set to_chars=" +TCF" #set use_8bitmime # enable the -B8BITMIME sendmail flag set use_domain # don't qualify local addresses with $domain set nouse_from # always generate the `From:' header field #set use_mailcap=yes # always use a mailcap entry when found #set verify_sig=no # don't automatically verify message signatures set visual=vim # editor invoked by ~v in the builtin editor #set nowait_key # prompt when a pipe returns normal status #set write_inc=25 # show progress while writing mailboxes # only enable the following IFF you have sendmail 8.8.x or you will not # be able to send mail!!! #set dsn_notify='failure,delay' # when to return an error message #set dsn_return=hdrs # what to return in the error message # PGP settings for GnuPG #set pgp_default_version=gpg #set pgp_key_version=default #set pgp_receive_version=default #set pgp_send_version=default #set pgp_replysign=yes #set pgp_replyencrypt=yes #set pgp_sign_micalg=pgp-sha1 ##set pgp_gpg=/mnt/home/linux/bin/gpg #set pgp_gpg=/usr/bin/gpg # #set pgp_gpg_pubring=~/.gnupg/pubring.gpg #set pgp_gpg_secring=~/.gnupg/secring.gpg # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Header fields I don't normally want to see # ignore * # this means "ignore all lines by default" # I do want to see these fields, though! unignore from: subject to cc mail-followup-to \ date x-mailer x-url reply-to resent-from \ x-spam-status user-agent resent-date # this shows how nicely wrap long lines # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Color definitions # #color normal white black # BUG! color hdrdefault yellow black color quoted brightblue black color quoted1 cyan black color signature red black color indicator brightcyan blue color error brightred black color status black white color tree magenta black color tilde magenta black color message brightcyan black #color markers brightcyan black color attachment brightmagenta black color search brightwhite black color header brightmagenta black ^Subject: color header green black ^(From|To): color body magenta black "(ftp|http)://[^ ]+" color body magenta black [-a-z_0-9.]+@[-a-z_0-9.]+ # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Key bindings # # maps: # alias alias menu # attach attachment menu # browser directory browser # compose compose menu # index message index # pgp pgp menu # postpone postponed message recall menu # generic generic keymap for all of the above # editor line editor # pager text viewer # bind generic "\e<" first-entry # emacs-like bindings for moving to top/bottom bind generic \e> last-entry bind generic { top-page bind generic } bottom-page bind generic \177 last-entry bind generic up next-line bind generic down previous-line #bind index down next-entry #bind index up previous-entry #bind pager down next-message #bind pager up previous-message bind index d delete-message bind index u undelete-message #bind index \# imap-fetch-mail #macro index i "!ssh morris fetchmail" macro index F1 "!less /usr/doc/mutt/manual.txt" macro pager F1 "!less /usr/doc/mutt/manual.txt" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # User Defined Headers # #my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment #my_hdr X-Operating-System: `uname -a` my_hdr X-PGP-Key-Fingerprint: BAE3 4794 E627 2EAF 7EC0 4763 7884 4BE8 4795 1BD0 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify default filename when saving messages # # save-hook [!] # # is provided as default when saving messages from #save-hook mutt- =mutt-mail #save-hook aol\.com +spam # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Multiple spool mailboxes # # mbox-hook [!] # # Read mail in is moved to when is # closed. #mbox-hook =mutt-users.in =mutt-users #mbox-hook +TEST +inbox # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Change settings based upon message recipient # # send-hook [!] # # is executed when sending mail to an address matching #send-hook mutt- 'my_hdr From: Michael Elkins ' #send-hook mutt- 'set signature=~/.sigmutt' send-hook . 'my_hdr From: Bradley Marshall ' send-hook . 'set signature=~/.signature' send-hook linux.com 'my_hdr From: Bradley Marshall ' send-hook linux.com 'set signature=~/.siglinux' #send-hook humbug.org.au 'my_hdr From: Bradley Marshall ' #send-hook humbug.org.au 'set signature=~/.sighumbug' #send-hook sage-au.org.au 'my_hdr From: Bradley Marshall ' #send-hook sage-au.org.au 'set signature=~/.sigsage' #send-hook . "set record=~/mail/sent-mail-`date +%Y-%m`" #set record="=sent-mail-`date +%Y-%m`" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify where to save composed messages # # fcc-hook [!] # # is recipient(s), is where to save a copy #fcc-hook joe +joe #fcc-hook bob +bob fcc-hook . =sent-mail # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Change settings based on mailbox # # folder-hook [!] # # is executed when opening a mailbox matching #folder-hook . 'set sort=date-sent' #folder-hook mutt 'set hdr_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"' #folder-hook =mutt my_hdr Revolution: \#9 # real comment folder-hook . 'set sort=threads' folder-hook =sent-mail 'set sort=date-sent' # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # append-hook, open-hook, close-hook # (support for compressed folders) # (only with compressed folders patch from http://www.rhein.de/~roland/mutt/) # # gzip: #append-hook \\.gz$ "gzip -c %t >> %f" #open-hook \\.gz$ "gzip -cd %f > %t" #close-hook \\.gz$ "gzip -c %t > %f" # bzip2: #open-hook \\.bz2$ "bzip2 -cd %f > %t" #close-hook \\.bz2$ "bzip2 -c %t > %f" # no appending possible with bzip2 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Aliases # # alias
[ ,
... ] #alias exam "\# to annoy michael" #alias me Michael Elkins # me! alias mutt-dev Mutt Development List # power users alias mutt-users Mutt User List alias mutt-announce Mutt Announcement List #alias spamcop submit.HzAqgUdWqNeKW0ON@spam.spamcop.net alias spamcop submit.nhtTh3cuRyuUMm3N@spam.spamcop.net # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Mailboxes to watch for new mail # # mailboxes [ ... ] # #mailboxes `echo ~/mail/*` `echo ~/mail/SageAU/*` `echo ~/mail/Reports/*` `echo ~/mail/PluggedIn/*` #mailboxes =MyMail =Admin =Bofh =PluggedIn/geeks =PluggedIn/all =PluggedIn/bne-office =LinuxConf =Amanda-Users #=LinuxConf =Code-Review =Gnokii =Amanda-Users =RT-users =Mailing #mailboxes =MyMail =Bofh =HumbugExec =Admin =Announce =CryptoGram =Humbug-Admin =Humor =Inbox =LogAnalysis =Netcraft =Newsletters =PerlBrisbane =PerlNews =Qauug =Security #mailboxes =SageAU/mentoring-wg =SageAU/sage-au =SageAU/sage-au-announce =SageAU/sage-au-awards =SageAU/sage-au-cop =SageAU/sage-au-exec =SageAU/sage-au-jobs =SageAU/sage-au-membership =SageAU/sage-au-mentor =SageAU/sage-qld =SageAU/sage-rg-exec #mailboxes =Reports/Amanda =Reports/Helpdesk =Reports/Netsaint =Reports/Network =Reports/Squid =Reports/Tripwire =Reports/Usage mailboxes =MyMail =Bofh =PluggedIn/geeks =PluggedIn/all =PluggedIn/bne-office =SageAU/sage-au-exec =HumbugExec =Reports/Amanda =Reports/Netsaint =Admin =Reports/Helpdesk =SageAU-Admin =SageAU/mentoring-wg =SageAU/sage-au-membership =SageAU/sage-au-jobs =SageAU/sage-au =SageAU/tech =SageAU/sage-lounge #mailboxes =MyMail =Admin =Coda =Rsync =Wit =Inbox =Raid =Webremote #mailboxes +mutt-dev +mutt-users +open-pgp +wmaker #mailboxes `echo ~/Mail/Lists/*` # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Specify the order of the headers to appear when displaying a message # # hdr_order [ ... ] # hdr_order date to cc from subject # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # # Identify mailing lists I subscribe to # # lists [ ... ] #lists mutt-dev mutt-users wmaker redhat-list open-pgp vim #lists chat general announce humbug bootWire ne-disp subscribe freshmeat-news codalist rsync pilot-unix linux-security cert-advisory redhat-watch-list xforce 0xdeadbeef ajug-qld subscribe brisbane-pm-list fwp daily-news modperl-announce perl-win32-announce mutt-announce qauug spamtools squid-announce subscribe all geeks subscribe sage-au sage-au-exec exec sage-au-jobs mentoring-wg sage-qld subscribe lca-organisers lca-helpers subscribe amanda-users subscribe rt-users subscribe bugtraq subscribe perlmx #set display_filter='t-prot -cemktS --bigq -Mmutt -L/mnt/home/bmarshal/.mutt/footers' # set it to '' to turn it off by default # toggle TOFU protection with ESC-0 (off) and ESC-1 (on) macro generic \e0 ":unset display_filter\n" "Turn TOFU protection off" macro generic \e1 ":set display_filter='t-prot -cemktS --bigq -Mmutt -L/usr/share/doc/t-prot/examples/footers'\n" "Turn TOFU protection on" # same in pager mode - ugly but what the hell... macro pager \e0 ":unset display_filter; exec exit\n:exec display-message\n" "Turn TOFU protection off" macro pager \e1 ":set display_filter='t-prot -cemktS --bigq -Mmutt -L/usr/share/doc/t-prot/examples/footers'; exec exit\n:exec display-message\n" "Turn TOFU protection on" # highlight TOFU protection: color body magenta black "^\\[---.*" color body green black "^#v[-+]" # EOF