[Dovecot] Blank lines in mailboxes

Timo Sirainen tss at iki.fi
Tue Apr 26 22:17:59 EEST 2005


On Tue, 2005-04-26 at 12:29 -0400, Mark E. Mallett wrote:
> > No idea. If I knew what the problem was and when it would happen, I
> > would have fixed it.
> 
> Does it detect writing to a zero-length existing file? 

Yep.

> You might consider being liberal when opening an mbox file, and skipping
> any blank lines prior to the first "From_", although this might be
> unsettling to some people.

Maybe.. But it shouldn't happen so there shouldn't be any need to do
that.. :) I think a better idea is to just upgrade to 1.0-stable
nowadays if someone has this problem.

> Kinda funny: I once encountered a UNIX mail utility that would always
> append messages to mbox files with a leading blank line even if the file
> was empty (i.e.  it would create new mbox files with a leading blank
> line), but would refuse to open any mbox files that began with a blank
> line.  Dunno how it survived in the wild... I suspect it was some broken
> interim version, but at any rate I hacked it to keep it from writing the
> blank line, *and* to skip blank lines when opening up an mbox.

Sounds like first versions of Dovecot ;)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050426/4957d0a3/attachment-0001.bin>


More information about the dovecot mailing list