Actually, rfc5322 states:
Each line of characters MUST be no more than 998 characters, and SHOULD
be no more than 78 characters, excluding the CRLF.
That said, it is recommended to limit lines to 78 characters.
For text-based MIME parts (such as the one in your example), you have a few options to achieve this:
- Use
text/plain; format=flowed
. For more information about this format, check out rfc2646. Essentially it provides a way of wrapping long lines that is reversible by the receiving client (hey! that's exactly what you wanted!)
- Use a different
Content-Transfer-Encoding
, such as quoted-printable
or base64
.
- Allow lines to exceed 78 characters and hope that they aren't longer than 998 characters... but you essentially end up with the same problem if you have extremely long lines that exceed 998 characters, so your best bet really is to follow one of the other options.