Multiple IMAP accounts and change-dir autocompletion

2010-09-07 Thread Max Arnold
Hello all,

I have multiple IMAP accounts (configuration is below) and mutt does not
reread remote directory list when I switch between mailboxes. For example:

- I open personal mailbox, press change-dir TAB and mutt shows remote folders
for that account

- then I swith to second account, again do change-dir TAB, but still see
remote folders from first account

So basically mutt caches first opened remote folder list and displays it every
time. Any ideas on how to fix this?

# 

mailboxes = imaps://perso...@imap.gmail.com:993/
mailboxes = imaps://w...@imap.gmail.com:993/

account-hook imaps://perso...@imap.gmail.com:993/ \
'set imap_user = perso...@gmail.com'

account-hook imaps://w...@imap.gmail.com:993/ \
'set imap_user = w...@gmail.com'

folder-hook imaps://perso...@imap.gmail.com:993 \
'set folder = imaps://perso...@imap.gmail.com:993/ \
smtp_url = smtps://perso...@smtp.gmail.com:465 \
from = perso...@gmail.com'

folder-hook imaps://w...@imap.gmail.com:993/ \
'set folder = imaps://w...@imap.gmail.com:993 \
smtp_url = smtps://w...@smtp.gmail.com:465 \
from = w...@gmail.com'

set folder = imaps://perso...@imap.gmail.com:993/

set spoolfile = =INBOX
set postponed = =[Gmail]/Drafts
unset record

macro index f1 change-folderimaps://perso...@imap.gmail.com:993/enter
macro index f2 change-folderimaps://w...@imap.gmail.com:993/enter


Re: Multiple IMAP accounts and change-dir autocompletion

2010-09-07 Thread Rado S
=- Max Arnold wrote on Wed  8.Sep'10 at  1:35:21 +0700 -=

 mutt does not reread remote directory list when I switch between
 mailboxes. For example:
 
 - I open personal mailbox, press change-dir TAB and mutt shows remote 
 folders
 for that account
 
 - then I swith to second account, again do change-dir TAB, but still see
 remote folders from first account
 
 So basically mutt caches first opened remote folder list and displays it every
 time. Any ideas on how to fix this?

This has nothing to do with 2 IMAP accounts, but with how
change-dir and TAB interact.
See Wiki / Guide / Actions for details.

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.