Real Programmers/ Jump Start/ Mutt/ Muttrc
Google site:

realprogrammers.com

Example .muttrc

# .muttrc, paulm: 2002-08-20

# Variables are set in a variety of ways, the explanation buried in
# 3.23 Setting Variables including the quad-option: yes, no, ask-yes, ask-no

# Sort by default using threads
# (see last paragraph of 4.8 Handling Mailing Lists)
set sort=threads

# Default sent-mail folder for all outgoing messages
set record="=Sent"

# Mutt will treat the following regex as a pattern for your email
# addresses. It's used amongst other things to remove these addresses
# from recipients in a group reply.
set alternates="paul.makepeace@.*|paul@workaddress.com|.*@paulm.com"

# Add a signature. Note the | at the end.
set signature="~/bin/randsig.pl|"

# Set a postponed folder, see the P in 2.4 Sending Mail
set postponed="~/mail/postponed"

# mutt's hook feature allows config commands to apply at certain points,
# e.g. changing folders.
folder-hook Sent     set sort=date-sent
# As an experiment I'm keeping my address book in a mutt folder so I
# sort by subject (person's name).
folder-hook contacts set sort=subject

ignore X-
unignore date
# X-Spam from SpamAssassin I want to see
unignore X-Spam-
# List- headers from mailman
ignore List-
# Thread- headers from MS Outlook
ignore Thread-
# Other headers that aren't that interesting
ignore content-
ignore precedence
ignore in-reply-to
ignore errors-to

# lists is used in list-reply (L by default).
lists  mutt-users@mutt.org exim-users@exim.org fwp@perl.org

# Which mailboxes to check for mail, and in what order
# Hint: Use ^L (Ctrl-L) to force a check.
mailboxes  ! =work/interoute =work/DHAP =Personal/Bill =Lists/bikergoths-l

# read_inc; how often to update the mailbox reading &
# writing counter. This can really help over slow connections.
set read_inc=2000
set write_inc=500

# These two macros operate on the index page and report spam
# using Razor. Note the pipe:
# the whole message will be forwarded to the pipe.
# Macros will treat ^M as control sequence, Return in this case.
macro index S "|/usr/bin/spamassassin -r^Ms=spam^M"

hdr_order  From From: Date: To: Cc: Subject:

# The following enables automatic decoding of messages containing HTML.
# In ~/.mailcap have something like,
# text/html; /usr/bin/lynx %s; nametemplate=%s.html
# text/html; /usr/bin/lynx -nolist -dump %s; nametemplate=%s.html; copiousoutput
set mailcap_path=~/.mailcap
auto_view text/html

# Forward attachments
# This is possibly mutt's only obvious weak area. Forwarding attachments
# isn't particularly good. [More details?]
set mime_forward=ask-no
set mime_forward_decode

# Prevent asking about moving ! to mbox, and purging deleted messages
set move=no
set delete=yes

# Turn off the help line at the top
set help=no

set noconfirmappend     # Don't ask to append when saving to existing folders.
set forward_format="%s" # Other common values "Fwd: %s"
set read_inc=2000	# How often to update the mailbox reading counter
set write_inc=500	# How often to update the mailbox writing counter

# Include 'O' messages (next-unread), as well as usual 'N' (next-new)
# bind index <tab> next-unread
# bind pager  next-unread

# Turn off the exit without saving key (x, by deault), make it exit with
# save (equivalent to by default, q).
bind index x quit

# Send hooks to set outgoing email addresses
send-hook "~C ." \
         my_hdr  From: Paul Makepeace (http://paulm.com/) <plonk@paulm.com>

# Mutt will automatically edit this file and add more aliases here
# To invoke this use the a key.
alias me Don't email this address <plonk@paulm.com>


All non-user content and code Copyright © 2000-2006 realprogrammers.com / Paul Makepeace. Comments & feedback welcome!