[Users] Problem sending html with really long lines
Slavko
linux at slavino.sk
Sun Dec 1 09:32:59 UTC 2024
Ahoj,
Dňa Sat, 30 Nov 2024 21:59:37 -0500 Pierre Fortin via Users
<users at lists.claws-mail.org> napísal:
> Is there a line length limit when sending .html files?
Here is general line length limit in email, original was 78 B, now it is
1022 B (both + CRLF). AFAIK many servers enforces that, some with higher
limit, but enforces -- either rejects mail (my server case) or
modifies email body (can violate RFC and/or break DKIM).
> However, the received file has a newline character inserted every
> 0x2000 (8192) characters, At non-natural code break points, this
> causes the browser to fail to display the data.
IMO 8kB is general safeguard...
> What I don't know is if these newline characters are inserted by CM
> or by my service provider.
I don't know who add EOLs, but i hope that it was not CM ;-)
When you attach some file, you can go to Attachments tab (raw
translation), click by right mouse button on particular item and choose
Properties and check encoding. In my case (see attached image) the CM
chose "7bit" for that (random) HTML file, that will send file in
unchanged state (as is). You can force it eg. to Base64, which will
encode content and ensure 78B lines (at price of size increase) and try
again.
IMO, your life would be simpler, if you will not generate as long
lines, even without email limits...
regards
--
Slavko
https://www.slavino.sk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cm_attach_prop.png
Type: image/png
Size: 4963 bytes
Desc: not available
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20241201/c186215c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digit��lny podpis OpenPGP
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20241201/c186215c/attachment.sig>
More information about the Users
mailing list