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

folder list with multiple imap accounts



Hi everybody,

I set up mutt for two imap-mailboxes (and no others). I got everything
to work fine except the folder lists. The folder list always displays
the folders of my local account, regardless of which account/folder I
am actually on. The $folder and $spoolfile variables get set
correctly, I checked that (with ":set ?<variable>"). I read through
all threads about this topic that I could find and I think it *should*
work this way, but somehow it doesn't. Here's my .muttrc:

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

account-hook imap://localhost/ 'set imap_user=local-user imap_pass=remote-pass'
folder-hook imap://localhost/ 'set folder=imap://localhost/INBOX/ 
spoolfile=imap://localhost/INBOX record==.Sent postponed==.Drafts from=""'

account-hook imap://imap.remote.dom/ 'set imap_user=remote-user 
imap_pass=remote-pass'
folder-hook imap://imap.remote.dom/ 'set folder=imap://imap.remote.dom/ 
spoolfile=imap://imap.remote.dom/ record==Sent postponed==Drafts 
from=me@xxxxxxxxxx'

mailboxes imap://localhost/ imap://imap.remote.dom/

set folder=imap://localhost/INBOX/
set spoolfile=imap://localhost/INBOX/

macro index c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro pager c "<change-folder>?<toggle-mailboxes>" "open a different folder"
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"

set move=no
set menu_scroll=yes
set menu_context=3
set pager_index_lines=8

set beep_new=yes
set sendmail_wait=-1

set envelope_from
set use_from

set delete=yes          # At exit, delete messages marked for deletion
set strict_threads      # Subject isn't enough to think it's a thread

set editor="emacs"      # Use emacs

ignore *
unignore from date subject to cc reply-to
unignore x-mailing-list:
hdr_order From: Reply-To: To: Cc: Date: Subject:

color index     brightyellow    black   "~F"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What am I doung wrong? Or is this a bug?

Thank you all for helping me out - T.