On Fri 29, Jan'10 at 12:01 PM +0000, chombee wrote:
This seems to be an alright solution. It keeps the muttrc files nice and simple (no hooks). It's nice to be able to launch all three mutt instances (and offlineimap also) with a single 'screen' command. On the downside, you can't see when there is new mail for an account without switching to the screen for that account.
I should say that when I suggested putting multiple accounts in the same muttrc, that I only actively check one IMAP account. All of my email addresses are directed towards two accounts, one IMAP account and one gmail account. The IMAP account is synced with offlineimap and the gmail account has selected folders checked by getmail. So I have no login/server setup in my muttrc.
All my profiles consist of is a return address and a signature for my work address. I use 'alternates' and 'reverse_name' to take care of most of the simple address switching, and a simple set (6) of send/reply hooks to ensure the right main profile is selected (work/non-work). Lastly, I have one folder hook that switches me to my work address when I enter that folder. I also have a couple of reply/send hooks for various mailing lists like this one that switch my From.
I much prefer this setup to having separate muttrcs. I can switch between folders at will and am notified of any mail coming in. Though I usually use screen with several mutts running at once, one on my inbox, one on my workbox, and one for reading lists.
The key is that all of my email is funneled into just two accounts, all of the mail checking occurs externally to mutt, and that I have simple requirements for switching - use my work address if in my work box or sending/receiving a message from my work domain. If you have more complicated requirements or are checking multiple accounts within mutt, multiple muttrcs is probably much better.
