Greetings,

Sorry this is a tad on the long side.  I tried to condense it as much as I
possibly could.

I'm trying to configure mutt (1.5.20, running on Fedora 13) to use multiple
IMAP accounts gracefully, but the "folder" variable doesn't seem to be
getting set correctly, despite following the suggestions in the mutt manual
(Chapter 6, Section 6, "Managing Multiple Accounts").

The aforementioned manual section states

  To manage multiple accounts ..., folder-hook has to be used together with
  the mailboxes command.

(and gives some sample .muttrc code), and it promises that

  Each folder-hook triggers when one mailbox below each IMAP account is
  opened and sets $folder to the account's root folder.

However, this doesn't appear to be happening.  If I create a .muttrc file
like this

  account-hook imap://host1 set imap_user=user1
  account-hook imap://host1 set imap_pass=pass1
  folder-hook  imap://host1 set folder=imap://host1
  mailboxes    imap://host1/INBOX

  account-hook imap://host2 set imap_user=user2
  account-hook imap://host2 set imap_pass=pass2
  folder-hook  imap://host2 set folder=imap://host2
  mailboxes    imap://host2/INBOX

and then start mutt and enter one of the two mailboxes (by running "y", and
hitting "Enter" on the appropriate line), the corresponding folder-hook
doesn't seem to be triggered, because the "folder" variable is not being set
to the specified value.

Other relevant docs,

  MuttGuide/Receive
  MuttGuide/Folders
  MuttGuide/UseIMAP
  MuttFaq/RemoteFolder
  mutt.sourceforge.net/imap

don't seem to shed any light on the situation.

How can I get this to work as advertised?  Or am I just misunderstanding how
it's supposed to work?

Thanks for your time reading this.

Regards,

-- 
Todd Hesla

Reply via email to