On Wednesday, 03 October 2001 at 19:18, Geir Isene wrote:
> I am using mutt 1.3.21i and are setting it up with two IMAP accounts.
> 
> My main IMAP account is set up with automatic login, and several of the
> folders there are marked as mailboxes to be checked for new mail.
> 
> So far so good. Everything is rosy up to this point.
> 
> Now I am adding another IMAP account on another server. And I want the 
> INBOX of that account also as a mailbox (with autochecking for new mail).
> Problem is that mutt is then trying to login to that account with the
> username and password from my main IMAP account.
> 
> Is there any way I can specify two set of usernames and passwords to
> make mutt automatically check two separate IMAP accounts for new mail
> without having to manually log in to those accounts first?

account-hook . 'unset imap_user imap_pass'
account-hook imap://account1/ 'set imap_user=foo imap_pass=bar'
account-hook imap://account2/ 'set imap_user=baz imap_pass=wibble'
unset imap_passive
mailboxes imap://account1/mx1 imap://account2/mx2

or something like that...

Reply via email to