2 Feb
2007
2 Feb
'07
12:40 p.m.
On Fri, 2007-02-02 at 01:03 +0100, Jakob Hirsch wrote:
Hm, how does dovecot know that a message contains crlf, so it can use sendfile instead of read/write? If you have some kind of simple autodetection, like "read the first line, if it contains crlf, assume all other lines also do", we already have some (non-optimized) form of that. I guess this also affects IMAP, right? There's no simple autodetection. There's a "message is binary safe" flag in cache file that gets set after the message has once been parsed and only CRLF-linefeeds were seen.
Oh. So dovecot-deliver could already do that? (maybe it already honours the mail_save_crlf?)
Deliver doesn't update the cache file at all in v1.0 branch. It does use mail_save_crlf though.