[Dovecot] Bug in MEMORY INDEX ? [v 1.1.16]
When setting a
CONTROL directory that does not exists (has to be created by dovecot upon first login)
AND
INDEX=MEMORY
Dovecot POP3 will fail upon first login with 'Couldn't init INBOX: Internal error occurred. Refer to server log for more information.'
Temporary fix seems to work fine patching dovecot-1.1.16/src/lib-storage/index/maildir/maildir-util.c
98a99
unsigned int k = 0;
105c106,109
< dirs[i++] = mail_storage_get_mailbox_index_dir(box->storage,
/* Only create index folders if index is not MEMORY */
if(!mail_index_is_in_memory(mbox->ibox.index))
dirs[i++] = mail_storage_get_mailbox_index_dir(box->storage,
107c111,113
< i_assert(i == N_ELEMENTS(dirs));
else k++;
i_assert(i == N_ELEMENTS(dirs)-k);
Tested only on dovecot 1.1.16
Regards,
Joel A. Chornik
ELSERVER.COM
On Wed, 2009-07-01 at 20:21 -0300, Joel A. Chornik wrote:
CONTROL directory that does not exists (has to be created by dovecot upon first login)
AND
INDEX=MEMORY
Dovecot POP3 will fail upon first login with 'Couldn't init INBOX: Internal error occurred. Refer to server log for more information.'
participants (2)
-
Joel A. Chornik
-
Timo Sirainen