Re: [Dovecot] 2.1: imapc LIST problem / usage question

2011-09-12 Thread Timo Sirainen
On Fri, 2011-09-09 at 12:21 +0200, Lutz Preßler wrote:

> > > 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?
> One local dovecot user, multiple remote IMAP servers included in different
> namespaces.

I think you should be able to return e.g. "namespace=ns1 ns2" and then
return namespaces for namespace/ns1/* and namespace/ns2/*.




Re: [Dovecot] 2.1: imapc LIST problem / usage question

2011-09-09 Thread Lutz Preßler
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



Re: [Dovecot] 2.1: imapc LIST problem / usage question

2011-09-09 Thread Lutz Preßler
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.
> 
> > 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?
One local dovecot user, multiple remote IMAP servers included in different
namespaces.

Lutz


Re: [Dovecot] 2.1: imapc LIST problem / usage question

2011-09-09 Thread Timo Sirainen
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=ixx...@gmail.com userdb_imapc_password=x 
> 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?