[Dovecot] dsync convert Maildir -> mdbox, separators in subscriptions file
Hello,
I'm playing around with Dovecot 2.0 beta 4.
If I use dsync to convert a users mail stored in Maildir format to mdbox format, the subscriptions file in the new mdbox is created using the wrong mailbox separator ('.') leading to folders within folders not being readable by clients using the subscription feature.
Excerpt from IMAP: . LIST "" "*"
- LIST (\HasChildren) "/" "Spam"
- LIST (\HasNoChildren) "/" "Spam/Test"
. LSUB "" "*"
- LSUB () "/" "Spam"
- LSUB () "/" "Spam.Test"
I am not currently using Maildir, and have no plans to either, so I am very pleased with mdbox using '/' as seperator.
I am considering to use Maildir as a transition format so that I can use allready available scripts to do the job (uw2dovecot.pl first, then dsync).
So the question is, is this a bug in dsync?
At the time of conversion mail_location = maildir:~/Maildir
I used the following command to do the conversion: # dsync -u username convert mdbox:~/mdbox
-- Frode Nordahl
On 04/08/2010 01:27 AM Frode Nordahl wrote:
Hello,
I'm playing around with Dovecot 2.0 beta 4.
If I use dsync to convert a users mail stored in Maildir format to mdbox format, the subscriptions file in the new mdbox is created using the wrong mailbox separator ('.') leading to folders within folders not being readable by clients using the subscription feature.
Excerpt from IMAP: . LIST "" "*"
- LIST (\HasChildren) "/" "Spam"
- LIST (\HasNoChildren) "/" "Spam/Test"
. LSUB "" "*"
- LSUB () "/" "Spam"
- LSUB () "/" "Spam.Test" … So the question is, is this a bug in dsync?
No, it's only a known problem, as long as it's mentioned in: http://hg.dovecot.org/dovecot-2.0/file/tip/TODO
But this command may be helpful: sed -i "s/\./\//g" subscriptions
Regards, Pascal
The trapper recommends today: cafebabe.1009823@localdomain.org
Pascal Volk wrote:
On 04/08/2010 01:27 AM Frode Nordahl wrote:
Hello,
I'm playing around with Dovecot 2.0 beta 4.
If I use dsync to convert a users mail stored in Maildir format to mdbox format, the subscriptions file in the new mdbox is created using the wrong mailbox separator ('.') leading to folders within folders not being readable by clients using the subscription feature.
Excerpt from IMAP: . LIST "" "*"
- LIST (\HasChildren) "/" "Spam"
- LIST (\HasNoChildren) "/" "Spam/Test"
. LSUB "" "*"
- LSUB () "/" "Spam"
- LSUB () "/" "Spam.Test" ⦠So the question is, is this a bug in dsync?
No, it's only a known problem, as long as it's mentioned in: http://hg.dovecot.org/dovecot-2.0/file/tip/TODO
Thank you for pointing this out. I will check the TODO file(s) before reporting a issue the next time.
Cheers!
-- Mvh, Frode Nordahl
On Thu, 2010-04-08 at 01:27 +0200, Frode Nordahl wrote:
If I use dsync to convert a users mail stored in Maildir format to mdbox format, the subscriptions file in the new mdbox is created using the wrong mailbox separator ('.') leading to folders within folders not being readable by clients using the subscription feature.
This happens only if you don't have a namespace { separator } set. dsync now refuses to run in such situation:
dsync(tss): Fatal: Mail locations must use the same virtual mailbox hierarchy separator (specify separator for the default namespace)
participants (3)
-
Frode Nordahl
-
Pascal Volk
-
Timo Sirainen