Re: Mutt & 2 accounts
On Sun, Nov 27, 2005 at 12:58:30PM -0500, email@example.com wrote:
> On Sun, Nov 27, 2005 at 06:30:57PM +0200, Vladimir Zolotykh wrote:
> > Thank you for helping me get Mutt working.
> > Could you please give me some clue how to set up Mutt working with two
> > differenct accounts on the same IMAP server? Entering full server
> > name, user name, and password each time I want to change account is
> > tiresome.
> > I've tried
> > account-hook imaps://user1@server ....
> > account-hook imaps://user2@server ....
> account-hook will only execute some mutt code when an account is used,
> which is probably not quite what you think. What you want first is to
> define the two accounts in .muttrc like so:
> mailboxes imaps://user1[:pass1]@server imaps://user2[:pass2]@server [/var/mail/user]
With conjunction with mutt -y it works fine. The problem still
remains, thought. If I use one account say for user1 I need From:
field to look like <user1@domain>, and when I use another account the
From: field should be different, say <user2@domain>. I tried but in
vain. Should I always enter From: field manually, or it can be
Is account-hook sutable for that? I tried, but unsuccessfully.
And yet, I don't quite visualize to myself how account-hook is
working. Mainly which account-hook at what times is called?