In other e-mail programs, like evolution, all i had to do was
associate a smtp server ( with or withou autentication ) to each
account. With mutt, all I (supposedly) had to do was set
$sendmail accordingly inside each account-hook. Here's a
modified excerpt of my .muttrc so you can have a clearer idea of
what I'm talking about:
account-hook . '\
unset imap_user;\
unset imap_pass;\
unset tunnel;\
set from="user...@host.com";\
set sendmail="/usr/sbin/sendmail -oem -oi";'
account-hook imaps://mail.exemple.com 'set \
imap_user="us...@exemple.com"\
imap_pass="********"\
from="us...@exemple.com"\
sendmail="/usr/bin/ssh us...@mail.exemple.com /usr/sbin/sendmail -oem -oi"'
account-hook imaps://another.exemple.com 'set \
tunnel="ssh -q -C -l user mail.another.exemple.com /home/user/imapd 2>/dev/null Maildir/"\
from="us...@another.exemple.com"\
sendmail="/usr/bin/ssh us...@another.exemple.com /usr/sbin/sendmail -oem -oi"'
The problem is that, no matter which account I'm currently
reading/using, $sendmail will always be set with the second
account-hook settings. Login into the accounts presents no problem,
though.
Could anyone tell me what I am doing wrong here?!
[]s
MaCa
send-hook . 'my_hdr From: Your Name <user...@firstpop.com>'
send-hook '~t ^.*@secondpop\.com' 'my_hdr From: Your Nickname
<user...@secondpop.com>'
Jostein