Reputation: 28696
When using 8BITMIME smtp, you can set Content-Transfer-Encoding: 8bit in Mime messages and send text without encoding.
Except, there is still a line limit of 1000 octets (plus the line endings should all be <CR><LF>
)
When my library gets arbitrary UTF-8 data from a user, how should I go about splitting lines? Is there any way to split a 1002 octets line in a safe way? And what about a 1002 octet word (without whitespace).
In Quoted-Printable you can do =<CR><LF>
, is there something similar for 8bit?
Upvotes: 2
Views: 621
Reputation: 189307
There is no way for 8bit
to have longer lines, just like there is no way for 7bit
to (legitimately) contain 8-bit characters. If you want arbitrarily long lines, the binary
content type is available, but the standard, robust approach is to use a content-transfer-encoding such as quoted-printable or base64. Then the content within the encoding can be completely free-form.
Upvotes: 1