This the configuration I use for Mutt (1.0).


# Tim Waugh's .muttrc

# I used to use pine, and these are for comfort value
set folder=~/mail
set record=+sent-mail; set copy=yes
save-hook . +saved-messages
bind index '-' previous-page
bind index ' ' next-page
bind pager '[' half-up
bind pager ']' half-down
set forward_format="%s (fwd)"
set mime_forward
unset mime_forward_decode
set forward_weed
unset confirmappend
set attribution="On %d, %n wrote:\n"
set include
set delete=yes
set move=no
set help
macro index \cb |urlview\n
macro pager \cb |urlview\n
macro index \ef "!fetchmail -a\n"

# Header weeding and ordering
ignore *
unignore from: date subject to cc
unignore reply-to mail-followup-to
hdr_order date from to cc subject

# GnuPG stuff
# I want to sign all of my messages by default (except to certain
# recipients), and I want to encrypt only to certain recipients.
# I also want to reply to encrypted messages encrypted.
set pgp_default_version=gpg
set pgp_replyencrypt
set pgp_verify_sig=ask-yes
set pgp_encryptself
set pgp_timeout=1200 # I don't want to have to type my passphrase too often
# By default:
# Don't encrypt
send-hook . unset pgp_autoencrypt
# Sign
send-hook . set pgp_autosign
# Abort if no subject.
send-hook . set abort_nosubject=ask-yes
# Now the exceptions:
# Majordomo doesn't care about signatures or subject lines
send-hook Majordomo@ unset pgp_autosign
send-hook Majordomo@ set abort_nosubject=no
# Send encrypted to these people
send-hook tim@cyberelk\.demon\.co\.uk set pgp_autoencrypt
send-hook set pgp_autoencrypt
send-hook bandregg@redhat\.com set pgp_autoencrypt
# Use the '' key for this address
pgp-hook tim@cyberelk\.demon\.co\.uk 44E96F28

# I don't have a signature, so I don't use sigdashes
unset sig_dashes

# I use emacs for writing mail.
# In my .emacs I put:
# ;;; Don't add newlines when at the bottom of a document
# (setq next-line-add-newlines nil)
# ;;; Turn on paragraph filling when going into text mode
# (add-hook 'text-mode-hook 'turn-on-auto-fill)
# ;;; to tell emacs to use text mode when editing mail messages
# (setq auto-mode-alist (cons '("^/tmp/mutt-" . text-mode) auto-mode-alist))
set abort_unmodified=ask-yes
set editor="emacs -nw"

# I like seeing threading mail by default
set sort=threads

# Why do I need to do this?  It stops the folder internal messages
# from showing up in my index, but I'm not sure where they come from
# in the first place..
folder-hook . "push \"l!(~s 'FOLDER INTERNAL DATA')\n*\""

# Colours

color quoted green default
color signature red default
color indicator brightyellow red
color error brightred default
color status yellow blue
color tree magenta default      # the thread tree in the index menu
color tilde magenta default
color message brightcyan default
color markers brightcyan default
color attachment brightmagenta default
color search default green      # how to hilite search patterns in the pager
color body magenta default "(ftp|http)://[^ )>]+" # point out URLs
color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+    # e-mail addresses
color underline brightgreen default

# Mail from people in my company (but not listed in the scores file)
# should appear with a red background. ;-)
color index default red '(~f @redhat\.com) | (~f @redhat\.de) | (~f @cygnus\.com)'

# Put high-scoring messages in bold
color index brightwhite default '~n 4-'

# I'm interested in messages containing the word 'parport' in the body,
# especially if they don't come from the linux-parport list (those are
# the hard ones to spot).  So colour them green.  I love mutt. ;-)
color index brightgreen default '!(~B owner-linux-parport) ~b parport'

# Hmm, pine can do this better..
# I want different people's text to appear in different colours.  So
# the colour depends on the number of times it's been quoted..
color body blue default "^ *> *> *>.*" # quoted quoted quoted
color body red default "^ *> *>.*" # quoted quoted

# I put my scoring regexps in another file -- so people can't read them..
# That file just contains stuff like this:
# score '~p' 9 # messages to me rather than a list are important to me
# score '~f mypal@bestfriend\.net' 8
# score '~f' 6
# etc.
source $HOME/.mutt-scores

# How I like the index to look
set hdr_format="%4C %Z %{%m/%d} %-15.15F (%4c) %s"

# procmail spools mail into files in ~/in/.  I could type in all the
# names here, but instead I let mutt figure out what's in there.
mailboxes `echo $HOME/in/*`

# I split out account-specific stuff into another file so that I can
# move my mutt preferences around without too much difficulty.
# Here's one of them:
# set hostname=""
# set use_domain
# set pgp_gpg=/usr/local/bin/gpg
# my_hdr From: Tim Waugh <>
source $HOME/.mutt-local

# Mail aliases
source ~/.mutt-aliases
set alias_file=~/.mutt-aliases

Valid HTML 3.2!