Hy,

I'm trying to set up multiple IMAP acounts. My problem is about
switching between servers.

I've read some documentation on the web, especially this one:
http://wiki.mutt.org/?MuttGuide/UseIMAP

The important lines in my .muttrc are :

set header_cache = "~/.mutt_header_cache"
set message_cachedir = "~/.mutt_msg_cache"
set imap_authenticators = "login"
set imap_passive = "no"
set imap_check_subscribed = "yes"
set imap_list_subscribed = "yes"
set ssl_starttls = "yes"

account-hook . 'unset preconnect imap_user'

account-hook imaps://imap.gmail.com:993 ' \
    set imap_user = us...@gmail.com \
        spoolfile = imaps://imap.gmail.com:993 \
        '
folder-hook imaps://imap.gmail.com:993 ' \
    set folder = imaps://imap.gmail.com:993 \
        smtp_url = smtps://us...@smtp.gmail.com:465 \
        '
account-hook imaps://zimbra.HOST2 ' \
    set imap_user = USER2 \
        spoolfile = imaps://zimbra.HOST2 \
        '
folder-hook imaps://zimbra.HOST2 ' \
    set folder = imaps://zimbra.HOST2 \
        smtp_url = smtp://USER2@smtp.HOST2 \


When I run mutt, mutt ask me the password for zimbra.HOST2, then
connects to zimbra.HOST2 (I can read the mails) but I don't know how
to access my Gmail account.
Pressing the key "y" give me these choices :

1   0                                 imaps://zimbra.HOST2/Drafts
2   0                                 imaps://zimbra.HOST2/Sent

Of course, I've tested the two accounts with mutt independently, they
both works.
I've also tried to use 'mailboxes = =INBOX =...'.
I'm using Mutt 1.5.20

Thank you for any help or suggestion,

Best,

Reply via email to