<<< Date Index >>>     <<< Thread Index >>>

Change folder



Hi all.

I use multiple IMAP-accounts and switch between them via 'account-hook'
(to set the imap_user and imap_pass) and 'folder-hook' to set all the
rest. The important lines look like this:


account-hook . 'unset imap_user; unset imap_pass;'

account-hook imaps://server.com 'set imap_user=... imap_pass=...'

folder-hook imaps://server.com 'set folder=imaps://server.com
record=imaps://server.com/inbox/sent ... and so on'


Lets say I'm logged in on account1. If I press 'c' followed by '?' I can
select any folder on account1. Then I switch to account2. If I then
press again 'c' and '?' I still see the folders of account1. It does not
matter if I start with account1 or ~2 or whatever. The first time I want to
change the folder it works, then I always see the folders of this first
account.

I assume my folder-hook line is not correct, but I cannot figure out
whats the problem.


Thanks in advance,

Prendick