On Sun, Nov 27, 2005 at 12:58:30PM -0500, [EMAIL PROTECTED] 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://[EMAIL PROTECTED] ....
> >   account-hook imaps://[EMAIL PROTECTED] ....
> 
> 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[:[EMAIL PROTECTED] imaps://user2[:[EMAIL PROTECTED] 
> [/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 <[EMAIL PROTECTED]>, and when I use another account the
From: field should be different, say <[EMAIL PROTECTED]>. I tried but in
vain.  Should I always enter From: field manually, or it can be
automated ?

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?

-- 
Vladimir Zolotykh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to