Difference between revisions of "Mutt"

From Noah.org
Jump to navigationJump to search
m (.muttrc moved to Mutt)
Line 1: Line 1:
[[Category:Engineering]]
 
  
 +
 +
== Building Mutt ==
 +
They finally added built-in SMTP support in version 1.5.15.
 +
<pre>
 +
apt-get install libncurses5-dev
 +
./configure --enable-pop --enable-imap --enable-smtp --enable-hcache --enable-ssl
 +
make
 +
make install
 +
</pre>
 +
 +
== .muttrc or ~/.mutt/muttrc ==
 
This is my .muttrc. This is nothing fancy.
 
This is my .muttrc. This is nothing fancy.
 
This seems to be the minimum to get Mutt working with IMAP.  
 
This seems to be the minimum to get Mutt working with IMAP.  
Line 19: Line 29:
 
set folder=""
 
set folder=""
 
# if you use virtual mail hosts then Maildir might not
 
# if you use virtual mail hosts then Maildir might not
# be in the default location.
+
# be in the default location... try looking in:
 +
# /home/vpopmail/domains/example.com/$USER/Maildir/
 
set spoolfile=~/Maildir/
 
set spoolfile=~/Maildir/
  
 
# IMAP
 
# IMAP
 
# For IMAP connections use the following settings.
 
# For IMAP connections use the following settings.
# Some settings replace those use above for folder and spoolfile.
+
# Some settings replace those used above for folder and spoolfile.
 
# Note that the full mail username is "username@example.com" and
 
# Note that the full mail username is "username@example.com" and
 
# the server name is "localhost". If you wanted to connect to a
 
# the server name is "localhost". If you wanted to connect to a

Revision as of 14:35, 1 June 2007


Building Mutt

They finally added built-in SMTP support in version 1.5.15.

apt-get install libncurses5-dev
./configure --enable-pop --enable-imap --enable-smtp --enable-hcache --enable-ssl
make
make install

.muttrc or ~/.mutt/muttrc

This is my .muttrc. This is nothing fancy. This seems to be the minimum to get Mutt working with IMAP. For more documentation go to Mutt documentation.

set mbox_type=maildir
set editor="vim"
# I like to see all my mail headers in my editor:
set edit_headers=yes
# don't wait for sendmail to finish (this runs sendmail in the background)
set sendmail_wait=-1
# this prevents Mutt from endlessly asking when you quit:
#     "Move read messages to ~/mbox? ([no]/yes):"
set move=no
# this prevents Mutt from endlessly asking:
#     "~/Mail does not exist. Create it? ([yes]/no):"
set folder=""
# if you use virtual mail hosts then Maildir might not
# be in the default location... try looking in:
# /home/vpopmail/domains/example.com/$USER/Maildir/
set spoolfile=~/Maildir/

# IMAP
# For IMAP connections use the following settings.
# Some settings replace those used above for folder and spoolfile.
# Note that the full mail username is "username@example.com" and
# the server name is "localhost". If you wanted to connect to a
# remote server the full URL might be something like:
#     imap://username@example.com@example.com
set folder="imaps://username@example.com@localhost"
set spoolfile="imaps://username@example.com@localhost/INBOX"
set imap_pass="my_stupid_password"
set certificate_file=".mutt_known_hosts"

I actually use a more complicated ~/.mutt/muttrc file that tweaks usability to make it more Vim-like. Mutt key bindings are already pretty close to Vim. See my dotfiles page.

<include url="http://www.noah.org/engineering/dotfiles/.mutt/muttrc" />