[Dovecot] Convert-tool maildir > mbox

Bertrand Jacquin beber at meleeweb.net
Mon Oct 10 15:10:13 EEST 2011


Timo,

Is seems that this commit broke convertion from Maildir to Mbox using 
dovecot 1.2 convert-tool binary :

2009-07-09  Timo Sirainen  <tss at iki.fi>

         * src/plugins/convert/convert-storage.c:
         convert plugin: Fixed changing hierarchy separators in mailbox 
names
         when alt_hierarchy_char isn't set.
         [a9f719f9a509] <HEAD>

Since, I get the following :

$ convert-tool user1 /var/mail/example.com/user1 
Maildir:/var/mail/example.com/user1 
mbox:/var/mail/example.com/user1-mbox alt_hierarchy_char=_
Error: Mailbox conversion: Couldn't create mailbox Sent/test: Mailbox 
doesn't allow inferior mailboxes
Error: Internal failure

Strace give show me a failure after :

access("/var/mail/example.com/user1/.Sent.test/cur", W_OK) = 0
stat("/var/mail/example.com/user1-mbox/Sent/test", 0x7fff843e73b0) = -1 
ENOTDIR (Not a directory)
write(2, "Error: Mailbox conversion: Couldn"..., 103Error: Mailbox 
conversion: Couldn't create mailbox Sent/test: Mailbox doesn't allow 
inferior mailboxes
) = 103
lstat("/var/mail/example.com/user1/.dovecot.convert.lock", 
{st_mode=S_IFREG|0644, st_size=12, ...}) = 0
unlink("/var/mail/example.com/user1/.dovecot.convert.lock") = 0

Is that somethinh known ? Didn't find anything interesting in archives.

Maybe that kind of conversion have evolved since 2.0 ?

Thanks,
Beber



More information about the dovecot mailing list