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-folder>imaps://perso...@imap.gmail.com:993/<enter>
macro index <f2> <change-folder>imaps://w...@imap.gmail.com:993/<enter>

Reply via email to