[Users] Content-Encoding with long lines improvements

Christopher Zimmermann madroach at gmerlin.de
Sun Apr 1 23:02:17 CEST 2012


On Sun, 1 Apr 2012 17:34:52 +0200
Colin Leroy <colin at colino.net> wrote:

> Just curious, what do you want to improve ?

The current quoted-printable inserts additional line breaks when
encoding lines longer than BUFSIZE. It does also not differentiate
between binary and text data. Therefore it can not transport binary
data lossless. It always uses newline to represent line breaks. RFC 2045
requires CRLF in text data and =XX encoding in other data.
Mails with 7bit or 8bit encoding are allowed to have lines (much)
longer than the maximum of 1000 characters allowed for smtp. Those
mails are rejected by strict MTAs like OpenSMTPd

Christopher




More information about the Users mailing list