----- Forwarded message from SerNet Support Lutz Pre?ler <support at SerNet.DE> ----- From: SerNet Support Lutz Pre?ler <support at SerNet.DE> Subject: 2.1: imapc LIST problem / usage question To: dovecot at dovecot.org Date: Fri, 9 Sep 2011 12:00:46 +0200 Organization: SerNet Service Network GmbH Hello, 2.1.alpha1 (latest Debian auto build on amd64) As a test, namespace for gmail integration set up by userdb with userdb_namespace=gmail userdb_namespace/gmail/list=yes userdb_namespace/gmail/subscriptions=no userdb_namespace/gmail/separator=. userdb_namespace/gmail/prefix=INBOX.gmail. userdb_namespace/gmail/location=imapc: userdb_imapc_host=imap.gmail.com userdb_imapc_user=ixxxxx at gmail.com userdb_imapc_password=xxxxx userdb_imapc_ssl=imaps userdb_imapc_ssl_ca_dir=/etc/ssl/certs userdb_imapc_port=993 (but having the namespace set up in config file makes no difference). This works in principle. I can e.g. 0 select "INBOX.gmail.[Gmail].Alle Nachrichten" * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 31 EXISTS * 0 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 1] UIDs valid * OK [UIDNEXT 19689] Predicted next UID * OK [NOMODSEQ] No permanent modsequences 0 OK [READ-WRITE] Select completed. and even use the gmail mailboxes within dovecot-virtual files! But: LIST seems broken: 0 list "" "*" * LIST (\HasChildren) "." "INBOX" * LIST (\HasNoChildren) "." "INBOX.privat" * LIST (\HasChildren) "." "INBOX.test" * LIST (\HasNoChildren) "." "INBOX.test.test2" * LIST (\HasNoChildren) "." "INBOX.Trash" * LIST (\HasNoChildren) "." "INBOX.in2009" [...] * LIST (\Noselect \HasChildren) "." "INBOX.gmail" * LIST (\HasNoChildren) "." "Arbeit" * LIST (\HasNoChildren) "." "Belege" * LIST (\HasNoChildren) "." "Privat" * LIST (\HasNoChildren) "." "Reisen" * LIST (\Noselect \HasNoChildren) "." "[Gmail]" * LIST (\HasNoChildren) "." "[Gmail]/Alle Nachrichten" * LIST (\HasNoChildren) "." "[Gmail]/Entw&-APw-rfe" * LIST (\HasNoChildren) "." "[Gmail]/Gesendet" * LIST (\HasNoChildren) "." "[Gmail]/Markiert" * LIST (\HasNoChildren) "." "[Gmail]/Papierkorb" * LIST (\HasNoChildren) "." "[Gmail]/Spam" * LIST (\HasNoChildren) "." "[Gmail]/Wichtig" * LIST (\HasChildren) "." "INBOX.virtual" * LIST (\HasNoChildren) "." "INBOX.virtual.week" * LIST (\HasNoChildren) "." "INBOX.virtual.sent" * LIST (\HasNoChildren) "." "INBOX.virtual.allin" 0 OK List completed. For the Gmail mailboxe the INBOX.gmail prefix is missing and / is used as separator. Second question: Is there a way to include multiple imapc instances/ namespaces with e.g. different destinations servers? I don't see how because imapc_* parameters seem to be global (now), but it would be a very useful feature. Greetings, Lutz
On Fri, 2011-09-09 at 12:01 +0200, Lutz Pre?ler wrote:> As a test, namespace for gmail integration set up by userdb > with > userdb_namespace=gmail userdb_namespace/gmail/list=yes userdb_namespace/gmail/subscriptions=no userdb_namespace/gmail/separator=. userdb_namespace/gmail/prefix=INBOX.gmail. userdb_namespace/gmail/location=imapc: userdb_imapc_host=imap.gmail.com userdb_imapc_user=ixxxxx at gmail.com userdb_imapc_password=xxxxx userdb_imapc_ssl=imaps userdb_imapc_ssl_ca_dir=/etc/ssl/certs userdb_imapc_port=993 > > For the Gmail mailboxe the INBOX.gmail prefix is missing and / is used > as separator.Fixed in hg.> Second question: Is there a way to include multiple imapc instances/ > namespaces with e.g. different destinations servers? I don't see how > because imapc_* parameters seem to be global (now), but it would be a very > useful feature.I don't really understand. You're already returning per-user imapc namespace from userdb. What's missing?
On Fr, 09 Sep 2011, Lutz Pre?ler wrote:> On Fr, 09 Sep 2011, Timo Sirainen wrote: > > > On Fri, 2011-09-09 at 12:01 +0200, Lutz Pre?ler wrote: > [...] > > > For the Gmail mailboxe the INBOX.gmail prefix is missing and / is used > > > as separator. > > > > Fixed in hg. > Thanks.LIST is now working correctly in my setup, but SUBSCRIBE ist not. With subscriptions=no, as written (but same behaviour with subscriptions=yes), SUBSCRIBE INBOX.gmail.INBOX (or others) yields 0 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2011-09-09 16:39:40] logging (with mail_debug=yes) only Sep 9 16:39:40 host dovecot: imap(1143, user): Error: stat((null)) failed: Bad address Lutz
On Fri, 09 Sep 2011, Lutz Pre?ler wrote:> LIST is now working correctly in my setup, but SUBSCRIBE ist not. > With subscriptions=no, as written (but same behaviour with subscriptions=yes), > SUBSCRIBE INBOX.gmail.INBOX (or others) yields > 0 NO [SERVERBUG] Internal error occurred. Refer to server log for more information. [2011-09-09 16:39:40] > logging (with mail_debug=yes) only > Sep 9 16:39:40 host dovecot: imap(1143, user): Error: stat((null)) failed: Bad addressAfter putting (with subscriptions=no) an entry manually into the root subscriptions file, everything including UNSUBSCRIBE works fine. Lutz