[Dovecot] imapc - different settings for different namespaces

Timo Sirainen tss at iki.fi
Fri May 31 23:21:40 EEST 2013


Originally I was planning on allowing all kinds of mail settings inside namespace {}, including imapc_* settings. But that's a bit difficult to implement (although I think it will happen some day). So for now I was thinking:

imapc foo {
  host = imap.foo.com
  master_user = foomaster
  password = foopass
}

imapc bar {
  host = imap.bar.com
  ...
}

namespace {
  prefix = foo/
  location = imapc:foo
}
namespace {
  prefix = bar/
  location = imapc:bar
}

So basically if the path after imapc isn't absolute (/path or ~/path), then treat the path as the imapc section name and use its settings.

Anyone have any improvement suggestions? I was planning on adding this to v2.2.3. I'm not sure if the section names should be "imapc" or something else (e.g. imap_remote {}).



More information about the dovecot mailing list