[Dovecot] maildir-dbox hybrid

Roland Stuehmer r.stuehmer at gmx.de
Sun Nov 28 23:50:01 EET 2010


Am 25.11.2010 17:45, schrieb Timo Sirainen:
> On Thu, 2010-11-25 at 15:33 +0000, Timo Sirainen wrote:
> 
>> Attached a program to de-maildirify a dbox. You have to run it
>> separately for each directory containing dbox-Mails:
> 
> Minor update: it shouldn't warn about non-existing maildir files.

Hi Timo, list,

I tried the updated version of the program, but I got a number of
"Fatal" errors, see below.

After that I retuned to the previos method of using the patched dovecot
1.2.16, which (after some error I reported here) left me with a running
instance with only the recovered maildir messages. Together with an
instance with just the new dbox mails I used imapsync to merge them and
have all my mail in one place now. :)


$ gcc -g -Wall -I$DOVECOT -I$DOVECOT/src/lib
-I$DOVECOT/src/lib-storage/index/dbox-common -DHAVE_CONFIG_H
dbox-dehybrid.c -o dbox-dehybrid $DOVECOT/src/lib/.libs/liblib.a

$ find /var/spool/dovecot -name dbox-Mails -type d -exec ./dbox-dehybrid
{} \;
Fatal:
stat(/var/spool/dovecot/mail/roland/dbox/mailboxes/INBOX/dbox-Mails/1114431075.R4ed46e60Q8777.atrus,S=4331,W=4418:2,So)
failed: No such file or directory
Fatal:
stat(/var/spool/dovecot/mail/roland/dbox/mailboxes/SPAM/dbox-Mails/1249480272.R72231c08Q2552.atrus,S=3328,W=3394:2,Sc)
failed: No such file or directory

Best,

Roland.


More information about the dovecot mailing list