Timo Sirainen <tss@iki.fi> writes:
On 21.5.2011, at 1.21, Kamil Jońca wrote:
- when I move dbox-Mails to proper place I got:
doveadm(kjonca): Error: sdbox /home/kjonca/Mail/dbox-temp/spamcop/reports/mailboxes/INBOX/dbox-Mails: Invalid dbox header size
What Dovecot version? I think this is fixed already.
Um. :( Files were created about 2 months ago. It was certainly 1.x, but now it is hard to say, what exactly version it was.
But question is open: Can I (and how) restore mails from so old backup?
Dovecot v2.0 should be able to read v1.x's dbox files. If it can, it can restore the backups. The only difference I can think of is that in some version I changed the default to have dbox save everything under "mailboxes/" directory. If your backups don't use that directory, you can use something like:
doveadm import sdbox:~/Mail/dbox-temp:MAILBOXDIR= "#Dbox" mailbox spamcop/reports
Unfortunately neither debian 2.0.12 nor 2.0.13 version can import these. Strange thing is that message "Invalid dbox header size" is printed after creating "dovecot-uidvalidity" and dovecot-index* files for source dbox, u.* files are not read at all.
KJ
-- http://blogdebart.pl/2010/03/17/dalsze-przygody-swinki-w-new-jersey/ "Nie można wlecieć w trzecie tysiaclecie na drzwiach od stodoły" - biskup polowy WP Sławoj Leszek Głódź.