Frode Nordahl
2010-Apr-07 23:27 UTC
[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
Pascal Volk
2010-Apr-08 21:47 UTC
[Dovecot] dsync convert Maildir -> mdbox, separators in subscriptions file
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 at localdomain.org
Timo Sirainen
2010-Jul-06 18:15 UTC
[Dovecot] dsync convert Maildir -> mdbox, separators in subscriptions file
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)
Seemingly Similar Threads
- Dovecot 2.0 and QUOTA capability
- dovecot 0.99.14 and imaps (SSL) "hangs"
- Dovecot 2.0 HG 11267: Crash on THREAD
- unexpected LSUB / LIST (SUBSCRIBED) output Re: Panic: file mailbox-list-subscriptions.c: line 66 (mailbox_list_subscription_fill_one): assertion failed: (ns!= NULL && (ns->flags & NAMESPACE_FLAG_AUTOCREATED) != 0)
- FreeBSD Update, kernel.debug