Re: folder in incoming mailbox

2011-05-11 Thread David Froger
with map_list_subscribed = 'no', c? give me the complete list.

Thank you Marco!

2011/5/9 Marco Giusti marco.giu...@gmail.com:
 On Mon, May 09, 2011 at 12:35:16PM +0200, David Froger wrote:
 Hy,

 With the following .muttrc, I can list and access to the folders foo,
 bar, baz using y and c? :

 set imap_authenticators = login
 set imap_passive = no
 set imap_check_subscribed = yes
 set imap_list_subscribed = yes
 set ssl_starttls = yes

 set spoolfile = imaps://zimbra.HOST
 set imap_user = USER

 set folder=imaps://zimbra.HOST/Inbox/

 mailboxes = imaps://zimbra.HOST/Inbox/
 mailboxes = imaps://zimbra.HOST/Inbox/foo
 mailboxes = imaps://zimbra.HOST/Inbox/bar
 mailboxes = imaps://zimbra.HOST/Inbox/baz

 So, I have put a mailboxes command for each folder foo,bar,baz

 I have noted that, with another account (Gmail), the folder are
 detected automatically,
 without having to use the mailboxes command, which is convenient.

 I would like to know if there were a way to have folder detected
 automatically with my zimbra.HOST account too?

 Have you try to connect to the zimbra.HOST? For what I know the folder
 list is dowloaded once you connected to the imap server and only then
 you can browse them.

 Check also the `imap_list_subscribed` variable, I seted it to `no`.

 m.


 --
 Dalle virtù che si esigono in un domestico, l'Eccellenza Vostra conosce molti
 padroni degni d'esser servitori?
                -- Pierre Augustin Caron de Beaumarchais



multiple IMAP accounts

2011-05-09 Thread David Froger
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,


Re: multiple IMAP accounts

2011-05-09 Thread David Froger
It's working, thanks a lot!

with:
account-hook imaps://imap.gmail.com:993 (...)
folder-hook imaps://imap.gmail.com:993 (...)

this works:
mailboxes imaps://imap.gmail.com:993

but this does not work (mutt ask my username/passwd, but can't connect):
mailboxes imaps://imap.gmail.com/

I think it was my problem in previous tests.



2011/5/9 Marco Giusti marco.giu...@gmail.com:
 On Mon, May 09, 2011 at 08:55:21AM +0200, David Froger wrote:
 [...]
 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.

 use `mailboxes` command so you can switch between in browser.

        mailboxes imaps://imap.gmail.com/
        mailboxes imaps://zimbra.HOST2/

 m.



 --
 C'è un'ape che se posa
 su un bottone di rosa:
 lo succhia e se ne va...
 Tutto sommato, la felicità
 è una piccola cosa.
                -- Trilussa, Felicità



folder in incoming mailbox

2011-05-09 Thread David Froger
Hy,

With the following .muttrc, I can list and access to the folders foo,
bar, baz using y and c? :

set imap_authenticators = login
set imap_passive = no
set imap_check_subscribed = yes
set imap_list_subscribed = yes
set ssl_starttls = yes

set spoolfile = imaps://zimbra.HOST
set imap_user = USER

set folder=imaps://zimbra.HOST/Inbox/

mailboxes = imaps://zimbra.HOST/Inbox/
mailboxes = imaps://zimbra.HOST/Inbox/foo
mailboxes = imaps://zimbra.HOST/Inbox/bar
mailboxes = imaps://zimbra.HOST/Inbox/baz

So, I have put a mailboxes command for each folder foo,bar,baz

I have noted that, with another account (Gmail), the folder are
detected automatically,
without having to use the mailboxes command, which is convenient.

I would like to know if there were a way to have folder detected
automatically with my zimbra.HOST account too?

Thanks,

David