[Dovecot] maildir-dbox hybrid

Roland Stuehmer r.stuehmer at gmx.de
Fri Oct 22 01:20:21 EEST 2010


Timo Sirainen wrote:
> Yeah. Not very nice either. Here's a 3rd option: Apply the attached 
> patch to v1.2 and then open all users' all mailboxes (write a script
> or something). It should convert all maildir files to dbox files. Try
> with one account first to make sure it works. :)

Hi Timo, list,

your 3rd option sounded best, but I got some problems and had to revert
to my backup:

I patched Dovecot 1.2.15 with your diff (and with debian patches). I
then accessed all mailboxes. For some it went OK, but for some I now
only see old mail and am missing the newest ones starting from some time
in February (I probably did a dovecot upgrade then).

What I got is thousands of these:

> Oct 21 21:29:30 atrus dovecot: IMAP(roland): 
> /var/spool/dovecot/mail/roland/dbox/mailboxes/INBOX/dbox-Mails/u.8922
> corrupted: Invalid dbox version

...and some occasional these:

> Oct 21 21:32:59 atrus dovecot: IMAP(roland): Panic: file
> mail-index-transaction.c: line 1273 (mail_index_update_ext):
> assertion failed: (seq > 0 && (seq <=
> mail_index_view_get_messages_count(t->view) || seq <=
> t->last_new_seq))
> 
> Oct 21 21:32:59 atrus dovecot: IMAP(roland): Raw backtrace: imap
> [0x4a6e32] -> imap [0x4a6eb3] -> imap [0x4a6596] ->
> imap(mail_index_update_ext+0x15d) [0x47d7bd] ->
> imap(dbox_sync_index_rebuild+0x1da) [0x43c87a] ->
> imap(dbox_sync_begin+0x481) [0x43ae01] -> imap(dbox_sync+0x18)
> [0x43b198] -> imap(dbox_storage_sync_init+0x36) [0x43b206] ->
> imap(mailbox_sync+0x30) [0x46d380] -> imap(cmd_select_full+0x37c)
> [0x42129c] -> imap [0x423adc] -> imap [0x423b8d] ->
> imap(client_handle_input+0x45) [0x423d05] -> imap(client_input+0x5f)
> [0x42469f] -> imap(io_loop_handler_run+0xcb) [0x4aefeb] ->
> imap(io_loop_run+0x18) [0x4ae468] -> imap(main+0x537) [0x42c727] ->
> /lib/libc.so.6(__libc_start_main+0xe6) [0x7fe1edc081a6] -> imap
> [0x41c689]
> 
> Oct 21 21:32:59 atrus dovecot: dovecot: child 2920 (imap) killed with
> signal 6 (core dumps disabled)

...where the last one is not always there.

Was there a dbox format change?

Best regards,

Roland.



More information about the dovecot mailing list