[Dovecot] IMAP separator migration (was: Sharing user folders doesn't work when users have periods in names. )

Timo Sirainen tss at iki.fi
Wed Jan 5 14:39:48 EET 2011


On Tue, 2011-01-04 at 19:54 +0000, ian+dovecot at comtek.co.uk wrote:

> Has anybody got any tips on migrating IMAP separators? Ideally I'd be 
> able to migrate users incrementally. Is there a way to specify the 
> separator per-user? I can't see a way to do it with a postlogin script 
> or userdb.

Both should be possible.

> http://wiki2.dovecot.org/UserDatabase/ExtraFields shows a namespace 
> setting, but it seems that the namespace is in version 1.2 format and my 
> namespaces look like:

No, it's for v2.0. You just need to name your namespaces:

> namespace {

namespace default {

>     type = private
>     separator = .
>     prefix =
>     inbox = yes
> }
> namespace {

namespace others {

(I think if you name it "shared", Dovecot thinks it's v1.x configuration
and will "convert" it.)

>     type = shared
>     separator = .
>     prefix = Users.%%n.
>     location = 
> maildir:/var/mail/virtual/users/%%n/Maildir/:INDEX=~/shared/%%u
>     subscriptions = no
>     list = children
> }
> namespace {

namespace pub {

>     type = public
>     separator = .
>     prefix = Shared.
>     location = maildir:/var/mail/virtual/public:INDEX=~/public
>     subscriptions = no
> }

Then you can have userdb set namespace/default/separator=/,
namespace/others/separator=/ and namespace/pub/separator=/. Or a
post-login script to set those in environment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20110105/403bfc2a/attachment.bin 


More information about the dovecot mailing list