LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mutt unable to handle multiple accounts (https://www.linuxquestions.org/questions/linux-software-2/mutt-unable-to-handle-multiple-accounts-922602/)

papul1993 01-07-2012 11:42 AM

Mutt unable to handle multiple accounts
 
Hi,
I am trying to send and receive emails 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 want 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


All times are GMT -5. The time now is 03:55 AM.