[Dovecot] Problem in mbox-sync.c
Hal Pomeranz
hal at deer-run.com
Tue Oct 23 01:08:39 EEST 2007
> > >Oct 21 19:36:01 postoffice1 dovecot: POP3(someuser): file mbox-
> > >sync.c: line 1433 (mbox_sync_handle_eof_updates): assertion failed:
> > >(file_size >= sync_ctx->expunged_space + trailer_size)
> >
> > Does the file have CRLFs as linefeeds instead of plain LFs? CRLF
> > handling is probably still a bit buggy.
>
> The mbox files are standard Unix text, so LF only, right? We haven't
> turned on the CRLF options in dovecot.conf, that's for sure.
Well, surprise, surprise. The file does have CR-LF line endings,
and stripping out the CRs seems to make the problem go away.
We imported the mailbox data from our old mail servers which were
FreeBSD boxes running a really old version of Cyrus. For some reason
the messages in users' Cyrus mailboxes had CR-LF instead of the
standard Unix LF line endings. Wacky.
Anyway, thanks for the pointers on this. I'm happy that it turned
out to be something mundane and easily fixable, even though we've
burned a bunch of time beating our heads against the issue.
--
Hal Pomeranz, Founder/CEO Deer Run Associates hal at deer-run.com
Network Connectivity and Security, Systems Management, Training
More information about the dovecot
mailing list