[arch-general] Email via mutt+offlineimap+msmtp

Madhurya Kakati mkakati2805 at gmail.com
Sat Jan 7 07:51:23 EST 2012


Hi,
I am trying to send and receive emaisl using mutt. I am using
offlineimap to download and store all my emails from two of my gmail
accounts. I have followed the following two guides [1] [2] to setup my
configuration. My problem is that when I try to compose an email, mutt
automatically chooses my second email account to send mails from
whereas I want my first account to be the one from which mails are
sent by default.
In my config files I have named my first email account for both imap
and smtp as well as for my local mail dir "mkakati" and my second one
"papul". So mutt chooses papul account to send mails from everytime i
compose an email. Basically what I want is that I want the mkakati
account to be the one from which emails are sent. Also I would like to
be able to choose from which email account I wantr to send mails. I
have folder-hooks setup so that it changes to from field according to
the folder (i.e account) I am in. But that doesn't seem to be working
properly.

 have provided links to my offlineimaprc, muttrc, msmtprc and some
other files below.

offlineimaprc http://codepad.org/6Sptj5DE
msmtp.rc http://codepad.org/wFuRZOKM
muttrc http://codepad.org/Rn7plSRp
mkakati.muttrc http://codepad.org/KvQn3Gri
papul.muttrc http://codepad.org/ppYti2KS

[1] http://pbrisbin.com/posts/two_accounts_in_mutt
[2] http://pbrisbin.com/posts/mutt_gmail_offlineimap


More information about the arch-general mailing list