mikel/mail — Issue #316: 7bit encoding line length
Author: mdimas
Created: 2011-12-19 22:04:32+00:00
State: open

Hi,

For emails with a text/html part it appears that Mail defaults to using 7bit encoding for the text/html part. When encoded is called on this part it does not break up the content into lines of 1000 characters. It replaces "\n" or "\r" with "\r\n", but does not break the content into multiple lines. RFC2045 implies that 7bit encoding still needs to represent data in 1000 character lines.

"7bit data" refers to data that is all represented as relatively short lines with 998 octets or less between CRLF line separation sequences [RFC-821].

Is there a way to make the 7bit encoded html part adhere to this 1000 character per line spec? Alternatively, is there a way to force text/html parts to use quoted-printable encoding so that it is broken into multiple lines correctly?

Thanks,
Mark