[[mutt]]
 

Compiling mutt

I compile mutt from source on my mac with the following options:

./configure --enable-imap --with-ssl

msmtp

Although mutt now support SMTP sending, I use msmtp. In your .muttrc:

set sendmail="/usr/local/bin/msmtp -a MyAccount"

My good old .muttrc

set edit_headers
#set status_on_top
set copy=yes
set folder=~/Mail
set move=no
set spoolfile="~/Mail/`date +%b%Y`"
#set spoolfile="{metahusky.net}INBOX"
#set spoolfile=imap://metahusky.net/Mail/`date +%b%Y`
#set spoolfile=imap://metahusky.net/INBOX.Sent
set hostname=metahusky.net
set use_domain
set realname="Gavin Kelman"
#mailboxes =tru64/`date +%b%Y` =sun/`date +%b%Y`
set mail_check=5
unset pager_stop
set include=yes
set markers=no
#set index_format="%3C. %Z %[%b %e] %30.30n %-35.35t (%4l) %s"
#set index_format="%3C%?M?+& ?%Z %[%b %d] %-16.16F [%-9.9O] %-33.33s (%4l)"
#set status_format="-[%f=]%>-[ %m Msgs ]-[ %n New ]-[ %P thru ]-"
#set index_format="%3C %S  %-15.15n  %-40.40s %[%b %e]" 
#set index_format="%3C %S  %-15.15n  (%4l) %-40.40s %[%b %e]" 

set index_format="%3C %S %-20.20n %-52.52s"

# DSpam key bindings.
# S will tag an email as spam and move it to the Mail/dspam mail folder.
# N will tag a non-spam as ham and nothing else.

macro pager i "|/usr/local/dspam/bin/dspam --addspam"\n
macro pager S "isMail/dspam"\n
macro pager I "|/usr/local/dspam/bin/dspam --falsepositive"\n
macro pager N "I"
macro index i "|/usr/local/dspam/bin/dspam --addspam"\n
macro index S "isMail/dspam"\n
macro index I "|/usr/local/dspam/bin/dspam --falsepositive"\n
macro index N "I"

set status_format=" [ `cat .msg` ]%> [ %m msgs ] [ %d del'd ] [ %n new ]"
set folder_format="%N %8s bytes - %d %f"
unset mark_old
set menu_scroll
#set pager_index_lines=12
set pager_context=0
set signature="/usr/home/gavin/.signature"
#set mail_check=5
#set pop_host=sithonia.muscat.com
#set pop_delete
#set pop_port=110
#set pop_user=gavin
#set pop_pass=
set record="=out"
set reverse_alias
set timeout=30
hdr_order From: Date: Subject: Cc: Bcc:
#set nostrict_threads                    # Lets have some fuzzy threading.
set sort="threads"
set sort_aux="last-date-received"	# Bring old thread with new post
					# to bottom of list.
set sendmail_wait=-1			# Send the mail in the background. 
set noconfirmappend
set abort_nosubject=no
set abort_unmodified=no
set autoedit
set auto_tag
unset beep
set beep_new
set confirmcreate
ignore *				# Display the headers I want.
unignore From:
unignore To:
unignore Subject:
unignore Date:
unignore CC:
unignore BCC:

#color header	cyan	default	"^from: *"
color normal brightwhite black 
color quoted green black
color quoted1 cyan black
color quoted2 green black
color quoted3 cyan black
color indicator brightwhite red
color signature blue black
color hdrdefault yellow black
color status white blue 
color message white black
color error red black
color body magenta black "(ftp|http)://[^ ]+"
color body magenta black [-a-z_0-9.]+@[-a-z_0-9.]+
color tree magenta black
color tilde magenta black 
color markers brightcyan black
color attachment brightmagenta black
color search black green
color underline brightgreen black

# colours messages for certain authors
# (Note: the order here seems to matter)

color index cyan black '(~f root)
color index red black '(~f bugzilla)
color index brightred black '(~f abuse)
color index brightmagenta black '(~f cron)
color index yellow black '(~f chris)
color index yellow black '(~f steve)
color index brightgreen black '(~t nutters)|(~t toaster)|(~c nutters)|(~c toaster)|(~t colo)
color index brightyellow black '(~t postfix-users)|(~c postfix-users)
color index cyan black '(~t postfix-announce)|(~c postfix-announce)
 
mutt.txt · Last modified: 2007/09/10 15:17 by gavin
 
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki