[Dovecot] trash folder (again)

Holger Hegmanns hlx at h3c.de
Thu Jul 8 17:56:12 EEST 2010


Am Donnerstag, 8. Juli 2010 16:04:49 schrieb Timo Sirainen:
> On Thu, 2010-07-08 at 15:54 +0200, Holger Hegmanns wrote:
> > drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Drafts
> > drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Sent
> > drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Templates
> > drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.Trash
> > drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.blah
> > drwxr-xr-x  5 vmail vmail 4096 Jul  8 14:19 .INBOX.blub
> 
> They shouldn't begin with ".INBOX". If you can't get rid of them with
> cyrus2dovecot, rename them manually.
> 
> (Although I'm not sure why cyrus2dovecot would have added that prefix..
> Wonder if you actually had them with Cyrus as well, and clients just had
> configured "INBOX." prefix. That wasn't correct either.)
> 
> > drwxr-xr-x  5 vmail vmail  4096 Jul  8 14:21 .Trash
> 
> Yeah, that's what it should have been after conversion.
> 
> > Maybe it's a namespace related problem, cause the advanced TB preference
> > panel looks like that:
> 
> Regardless of how you set up namespaces, the filesystem shouldn't
> contain the INBOX prefix.
> 
Hi Timo,

followed your suggestion. After execution of cyrus2dovecot without any 
substitution flags I got this:

drwxr-xr-x 11 vmail vmail  4096 Jul  8 16:27 .
drwxr-xr-x  3 vmail vmail  4096 Jul  8 16:22 ..
drwxr-xr-x  5 vmail vmail  4096 Jul  8 16:22 .Drafts
drwxr-xr-x  5 vmail vmail  4096 Jul  8 16:22 .Sent
drwxr-xr-x  5 vmail vmail  4096 Jul  8 16:22 .Templates
drwxr-xr-x  5 vmail vmail  4096 Jul  8 16:22 .Trash
drwxr-xr-x  5 vmail vmail  4096 Jul  8 16:22 .blah
drwxr-xr-x  5 vmail vmail  4096 Jul  8 16:22 .blub
drwxr-xr-x  2 vmail vmail  4096 Jul  8 16:22 cur
-rw-r--r--  1 vmail vmail   119 Jul  8 16:27 dovecot-uidlist
drwxr-xr-x  2 vmail vmail  4096 Jul  8 16:22 new
-rw-r--r--  1 vmail vmail    44 Jul  8 16:22 subscriptions
drwxr-xr-x  2 vmail vmail  4096 Jul  8 16:22 tmp

I did that already before my troubles came up. But the behaviour is not what I 
want. I'd like to have all folders, standard and user made, *below* the INBOX 
not at the *same level*. Cyrus doesn't have the "INBOX." prefix as well. The 
appropriate directory of cyrus looks like that:

-rw------- 1 cyrus mail 8469 Jul  7 00:21 1.
-rw------- 2 cyrus mail 2114 Jul  7 00:22 2.
drwx------ 2 cyrus mail  176 Jul  8 14:42 Drafts
drwx------ 2 cyrus mail  176 Jul  7 00:20 Sent
drwx------ 2 cyrus mail  176 Jul  7 00:20 Templates
drwx------ 2 cyrus mail  200 Jul  8 14:42 Trash
drwx------ 2 cyrus mail  240 Jul  7 00:22 blah
drwx------ 2 cyrus mail  192 Jul  7 00:23 blub
-rw------- 1 cyrus mail 1912 Jul  8 14:42 cyrus.cache
-rw------- 1 cyrus mail  175 Mar  3  2008 cyrus.header
-rw------- 1 cyrus mail  272 Jul  8 14:42 cyrus.index

And the view of cyradm:

user.martha (\HasChildren)              user.martha.Trash (\HasNoChildren)
user.martha.Drafts (\HasNoChildren)     user.martha.blah (\HasNoChildren)
user.martha.Sent (\HasNoChildren)       user.martha.blub (\HasNoChildren)
user.martha.Templates (\HasNoChildren)

It seems to be the default behaviour of cyrus to put all folders as subfolders 
below the INBOX.

I don't wanna waste your time, but wouldn't it be nice to make a real 
transparent migration from the users point of view?

Best
Holgera


More information about the dovecot mailing list