[Dovecot] should dovecot store maildir files with CRLF or LF?

Christoph Anton Mitterer calestyo at scientia.net
Wed May 22 01:45:49 EEST 2013


Hi.

I've made a strange observation.
When having Dovecot (at least) with maildir and moving (via IMAP) mail
received by some client (Evolution 3.4) into it the following happens:

Regardless of whether the mail was originally(!) set with CRLF or LF
(i.e. when I use netcat to submit the plain SMTP to the relaying MTA).

When the client (Evolution) had received the mail via POP3 before moving
it via IMAP into Dovecot... then the maildir file within dovecot is all
LF.

When the client however received it via IMAP, before in turn moving it
on via IMAP into Dovecot, then the maildir file is mixed CRLF and LF,
i.e. the body is CRLF, the headers are terminated...


Well the actually bug here is probably in Evolution (as so many
others... o.O)... but I wondered... what is Dovecot expected to write
files? Platform end-of-line markers (i.e. LF in case of UNIX) or always
network end-of-line markers (CRLF)?


Cheers,
Chris.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5113 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20130522/babaed69/attachment-0001.bin>


More information about the dovecot mailing list