I love mutt, and the mutt version shipped with Ubuntu is awesome (it even has a patched version), the only caveat I've found so far it's that I had not been able to manage several imap accounts at the same time.
Currently my mutt setup looks like this:
#$HOME/.mutt/muttrc
=== Accounts ====
set my_decrypt=`gpg -o $HOME/.mutt/accounts/passwd.gpg.tmp -d $HOME/.mutt/accounts/passwd.gpg`
set my_first_mail_passwd=`awk '/xxxxx@foo.com:/ {print $2}' $HOME/.mutt/accounts/passwd.gpg.tmp`
set my_second_mail_passwd=`awk '/yyyyy@bar.com:/ {print $2}' $HOME/.mutt/accounts/passwd.gpg.tmp`
set my_rm=`rm -f $HOME/.mutt/accounts/passwd.gpg.tmp`
source $HOME/.mutt/accounts/xxxxx@foo.com/xxxxx@foo.com.profile
//source $HOME/.mutt/accounts/yyyyy@bar.com/yyyyy@bar.com.profile
Which means that a password.gpg file is decrypted on the fly (where my email passwords live) use it to set some vars and deleted, also a default profile is sourced, it looks like this:
#$HOME/.mutt/accounts/xxxxx@foo.com/xxxxx@foo.com.profile
set folder = "imaps://imap.foo.com"
set spoolfile = "imaps://imap.foo.com/INBOX"
set header_cache = "$HOME/.mutt/cache/xxxxx@foo.com.headers"
set message_cachedir = "$HOME/.mutt/cache/xxxxx@foo.com.bodies"
set imap_user = "xxxxx@foo.com"
set imap_pass = $my_first_mail_passwd
set smtp_url = "smtp://xxxxx@smtp.foo.com"
set smtp_pass = $my_first_mail_passwd
Using this, I'm only able to use the account configured in the default profile.., I've heard that folder hooks can be used but I've no idea how to use them, and I'm also not sure if that's what I'm looking for, I'd like to just be able to source different profiles depending which email I'd like to read.., Any suggestion method is welcome.., I'd prefer a setup who don't rely on external programs who aren't part of a default Ubuntu installation.