mutt stable branch with some hacks
at jcs 340 lines 13 kB view raw
1# $Id$ 2 3# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4# 5# ME's personal .muttrc (Mutt 0.92.5) 6# 7# The format of this file is one command per line. Everything after a pound 8# sign (#) is a comment, unless a backward slash (\) precedes it. Note: In 9# folder-hook and send-hook you need to account for two levels of dequoting 10# (see manual). 11# 12 13# Note: $folder should be set _before_ any other path vars where `+' or `=' 14# is used because paths are expanded when parsed 15# 16#set folder=~/Mail # where i keep my mailboxes 17 18#set abort_unmodified=yes # automatically abort replies if I don't 19 # change the message 20set alias_file=~/.mail_aliases # where I keep my aliases 21#set allow_8bit # never do Q-P encoding on legal 8-bit chars 22set arrow_cursor # use -> instead of hiliting the whole line 23#set ascii_chars # use ASCII instead of ACS chars for threads 24#set askbcc 25#set askcc 26#set attribution="On %d, %n wrote:" # how to attribute replies 27set autoedit # go to the editor right away when composing 28#set auto_tag # always operate on tagged messages 29#set charset="iso-8859-1" # character set for your terminal 30set noconfirmappend # don't ask me if i want to append to mailboxes 31#set confirmcreate # prompt when creating new files 32set copy=yes # always save a copy of outgoing messages 33set delete=yes # purge deleted messages without asking 34set edit_headers # let me edit the message header when composing 35#set editor="emacs -nw" # editor to use when composing messages 36#set bounce=yes # don't ask about bouncing messages, just do it 37#set fast_reply # skip initial prompts when replying 38#set fcc_attach # keep attachments in copies of sent messages? 39#set force_name # fcc by recipient, create if mailbox doesn't exist 40#set forward_decode # weed and MIME decode forwarded messages 41#set forward_format="[%a: %s]" # subject to use when forwarding messages 42#set forward_quote # quote the header and body of forward msgs 43#set index_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s" 44set index_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s" # format of the index 45#set hdrs # include `my_hdr' lines in outgoing messages 46#set header # include message header when replying 47set help # show the help lines 48#set history=20 # number of lines of history to remember 49#set hostname="mutt.org" # my DNS domain 50set include # always include messages when replying 51#set indent_string="> " # how to quote replied text 52#set locale="C" # locale to use for printing time 53#set mailcap_path="~/.mailcap:/usr/local/share/mailcap" 54set nomark_old # i don't care about whether a message is old 55set mail_check=10 # how often to poll for new mail 56set mbox=+mbox # where to store read messages 57#set menu_scroll # no implicit next-page/prev-page 58#set metoo # remove my address when replying 59set mime_forward # use message/rfc822 type to forward messages 60set move=yes # don't ask about moving messages, just do it 61#set pager=less # some people prefer an external pager 62#set pager_context=3 # no. of lines of context to give when scrolling 63#set pager_format="-%S- %-20.20f %s" # format of the pager status bar 64set pager_index_lines=6 # how many index lines to show in the pager 65#set pager_stop # don't move to the next message on next-page 66#set pgp_strict_enc # use Q-P encoding when needed for PGP 67set postponed=+postponed # mailbox to store postponed messages in 68#set post_indent_string='---end quoted text---' 69#set print=ask-yes # ask me if I really want to print messages 70set print_command=/bin/false # how to print things (I like to save trees) 71set noprompt_after # ask me for a command after the external pager exits 72#set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text 73set read_inc=25 # show progress when reading a mailbox 74#set recall # prompt to recall postponed messages 75set record=+outbox # default location to save outgoing mail 76set reply_to # always use reply-to if present 77#set reply_regexp="^(re:[ \t]*)+"# how to identify replies in the subject: 78#set resolve # move to the next message when an action is performed 79#set reverse_alias # attempt to look up my names for people 80set reverse_name # use my address as it appears in the message 81 # i am replying to 82set nosave_empty # remove files when no messages are left 83#set save_name # save outgoing messages by recipient, if the 84#set sendmail="/usr/lib/sendmail -oi -oem" # how to deliver mail 85#set shell="/bin/zsh" # program to use for shell escapes 86#set signature="~/.signature" # file which contains my signature 87 88# I subscribe to a lot of mailing lists, so this is _very_ useful. This 89# groups messages on the same subject to make it easier to follow a 90# discussion. Mutt will draw a nice tree showing how the discussion flows. 91set sort=threads # primary sorting method 92 93#set sort_aux=reverse-date-received # how to sort subthreads 94#set sort_aux=last-date # date of the last message in thread 95set sort_browser=reverse-date # how to sort files in the dir browser 96set spoolfile='~/mailbox' # where my new mail is located 97#set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %l]---(%s)-%>-(%P)---" 98#set status_on_top # some people prefer the status bar on top 99#set strict_threads # don't thread by subject 100set tilde # virtual lines to pad blank lines in the pager 101#set timeout=0 # timeout for prompt in the index menu 102#set tmpdir=~/tmp # where to store temp files 103#set to_chars=" +TCF" 104#set use_8bitmime # enable the -B8BITMIME sendmail flag 105set nouse_domain # don't qualify local addresses with $domain 106#set use_from # always generate the `From:' header field 107set implicit_autoview=yes # pager shows parts having a mailcap viewer 108set pgp_verify_sig=no # don't automatically verify message signatures 109#set visual=vim # editor invoked by ~v in the builtin editor 110#set nowait_key # prompt when a pipe returns normal status 111set write_inc=25 # show progress while writing mailboxes 112 113# only enable the following IFF you have sendmail 8.8.x or you will not 114# be able to send mail!!! 115#set dsn_notify='failure,delay' # when to return an error message 116#set dsn_return=hdrs # what to return in the error message 117 118# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 119# 120# Header fields I don't normally want to see 121# 122ignore * # this means "ignore all lines by default" 123 124# I do want to see these fields, though! 125unignore from: subject to cc mail-followup-to \ 126 date x-mailer x-url # this shows how nicely wrap long lines 127 128# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 129# 130# Color definitions 131# 132 133#color normal white default 134color hdrdefault red default 135color quoted brightblue default 136color signature red default 137color indicator brightyellow red 138color error brightred default 139color status yellow blue 140color tree magenta default # the thread tree in the index menu 141color tilde magenta default 142color message brightcyan default 143color markers brightcyan default 144color attachment brightmagenta default 145color search default green # how to hilite search patterns in the pager 146 147color header brightred default ^(From|Subject): 148color body magenta default "(ftp|http|https)://[^ ]+" # point out URLs 149color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+ # e-mail addresses 150color underline brightgreen default 151 152# attributes when using a mono terminal 153#mono header underline ^(From|Subject): 154mono quoted bold 155 156# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 157# 158# Key bindings 159# 160# maps: 161# alias alias menu 162# attach attachment menu 163# browser directory browser 164# compose compose menu 165# index message index 166# pgp pgp menu 167# postpone postponed message recall menu 168# generic generic keymap for all of the above 169# editor line editor 170# pager text viewer 171# 172 173bind generic "\e<" first-entry # emacs-like bindings for moving to top/bottom 174bind generic \e> last-entry 175bind generic { top-page 176bind generic } bottom-page 177bind generic \177 last-entry 178 179macro index \cb "<pipe-message> urlview<Enter>" # simulate the old browse-url function 180 181macro index S "<save-message>+spam<Enter>" 182macro pager S "<save-message>+spam<Enter>" 183 184#macro index \# "<search>bug<Enter>" # search for bugs 185#macro index "\"" "<enter-command> set realname=\"real hairy macro\" ?realname<Enter>" # and a comment to boot! 186#macro index f1 "<enter-command>woohoo!" 187 188bind pager G bottom # just like vi and less 189#macro pager \Ck "<pipe-message> pgp -kaf<Enter>" # a comment is valid here 190#macro pager X "<pipe-message> morepgp<Enter>" # pipe PGP message to a script 191 192#bind editor \cy eol # make ^Y jump to the end of the line 193 194# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 195# 196# User Defined Headers 197# 198 199#my_hdr X-Useless-Header: Look ma, it's a \# sign! # real comment 200#my_hdr X-Operating-System: `uname -a` 201 202# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 203# 204# Specify default filename when saving messages 205# 206# save-hook [!]<pattern> <mailbox> 207# 208# <mailbox> is provided as default when saving messages from <pattern> 209 210#save-hook mutt- =mutt-mail 211#save-hook aol\\.com$ +spam 212save-hook ^judge +diplomacy 213 214# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 215# 216# Multiple spool mailboxes 217# 218# mbox-hook [!]<pattern> <mbox-mailbox> 219# 220# Read mail in <pattern> is moved to <mbox-mailbox> when <pattern> is 221# closed. 222 223#mbox-hook =mutt-users.in =mutt-users 224#mbox-hook +TEST +inbox 225 226# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 227# 228# Change settings based upon message recipient 229# 230# send-hook [!]<pattern> <command> 231# 232# <command> is executed when sending mail to an address matching <pattern> 233 234#send-hook mutt- 'set signature=~/.sigmutt; my_hdr From: Mutt User <user@example.com>' 235 236# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 237# 238# Specify where to save composed messages 239# 240# fcc-hook [!]<pattern> <mailbox> 241# 242# <pattern> is recipient(s), <mailbox> is where to save a copy 243 244#fcc-hook joe +joe 245#fcc-hook bob +bob 246 247# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 248# 249# Change settings based on mailbox 250# 251# folder-hook [!]<pattern> <command> 252# 253# <command> is executed when opening a mailbox matching <pattern> 254 255#folder-hook . 'set sort=date-sent' 256#folder-hook mutt 'set index_format="%4C %Z %02m/%02N %-20.20F (%4l) %s"' 257#folder-hook =mutt my_hdr Revolution: \#9 # real comment 258 259#folder-hook . 'set reply_regexp="^re:[ \t]*"' 260 261# this mailing list prepends "[WM]" to all non reply subjects, so set 262# $reply_regexp to ignore it 263# Warning: May break threads for other people. 264#folder-hook +wmaker 'set reply_regexp="^(re:[ \t]*)?\[WM\][ \t]*"' 265 266# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 267# 268# Aliases 269# 270# alias <name> <address> [ , <address> ... ] 271 272#alias exam "\# to annoy michael" <user@host> 273#alias me Michael Elkins <me@mutt.org> # me! 274alias mutt-dev Mutt Development List <mutt-dev@mutt.org> # power users 275alias mutt-users Mutt User List <mutt-users@mutt.org> 276alias mutt-announce Mutt Announcement List <mutt-announce@mutt.org> 277alias wmaker WindowMaker Mailing List <wmaker@eosys.com> 278 279# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 280# 281# Mailboxes to watch for new mail 282# 283# mailboxes <path1> [ <path2> ... ] 284# 285 286mailboxes ! +mutt-dev +mutt-users +open-pgp +wmaker +hurricane +vim +ietf \ 287 +drums 288#mailboxes `echo $HOME/Mail/*` 289 290# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 291# 292# Specify the order of the headers to appear when displaying a message 293# 294# hdr_order <hdr1> [ <hdr2> ... ] 295# 296 297unhdr_order * # forget the previous settings 298hdr_order date from subject to cc 299 300# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 301# 302# Identify mailing lists I subscribe to 303# 304# lists <list-name> [ <list-name> ... ] 305 306lists ^mutt-dev@mutt\\.org$ ^mutt-users@mutt\\.org$ 307 308# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 309# 310# Automatically use entries from ~/.mailcap to view these MIME types 311# 312# auto_view <type> [ <type> ... ] 313 314auto_view application/x-gunzip 315auto_view application/x-gzip 316 317# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 318# 319# Scoring 320# 321# score <pattern> <value> 322# 323# 9999 and -9999 are special values which cause processing of hooks to stop 324# at that entry. If you prefix the score with an equal sign (=), the score 325# is assigned to the message and processing stops. 326 327#score '~f ^me@cs\.hmc\.edu$' 1000 328#score '~t mutt | ~c mutt' =500 329#score '~f aol\.com$' -9999 330 331# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 332# 333# I use Mutt on several different machines, so I put local config commands 334# in a separate file so I can have the rest of the settings the same on all 335# machines. 336# 337 338source ~/.muttrc-local # config commands local to this site 339 340# EOF