[Dovecot] setting namespaces using script-login environment in 2.0

Timo Sirainen tss at iki.fi
Fri Nov 4 23:18:56 EET 2011


On Mon, 2011-10-31 at 18:00 +0100, Alexander 'Leo' Bergolth wrote:

> NAMESPACE_2='maildir:/var/mail/Shared/spamrep:INDEX=~/Maildir/index/Shared/spamrep'
> NAMESPACE_2_PREFIX=Shared/spamrep/
> NAMESPACE_2_SEP=/
> NAMESPACE_2_TYPE=public
> NAMESPACE_2_LIST=yes

The settings are now named.
http://wiki2.dovecot.org/MailLocation#Custom_namespace_location shows
the basics. So for example if you have:

namespace foo {
  ..
}

You can change it via:

NAMESPACE/FOO/PREFIX=Shared/spamrep/
NAMESPACE/FOO/SEP=/
..etc..

The '/' character is a bit problematic with shells scripts though, see
the wiki link how to do it via "env" at least.

Another problem is if you want to add more namespaces than you have
configured. IIRC it's possible to simply add:

NAMESPACE=foo

And more than one is probably either "foo bar" or "foo,bar". If you get
something to work, please add example to
http://wiki2.dovecot.org/PostLoginScripting :)




More information about the dovecot mailing list