2 Jul
2009
2 Jul
'09
2:21 a.m.
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