I use mbox with mbox-snarf plugin.
I get errors like:
dovecot: IMAP(testuser): Corrupted index cache file /full/path/ dovecot.index.cache: record points outside file
The errors can be in either folders or INBOX.
I put some syslog statements in src/lib-index/mail-cache-lookup.c to
help understand this.
if (offset + sizeof(*rec) > cache->mmap_length) {
mail_cache_set_corrupted(cache, "record points
outside file");
syslog(LOG_DEBUG,"mail_cache_get_record rec->size is
%d ", rec->size);
syslog(LOG_DEBUG,"cache->mmap_length is %d ", cache-
mmap_length); syslog(LOG_DEBUG,"offset is %d ", offset); return -1; }
syslog: mail_cache_get_record rec->size is 268595472 syslog: cache->mmap_length is 4096 syslog: offset is 1630760037
Oh I forgot to print off sizeof(*rec). Would that help?
Thanks, Jonathan