|
|
|
|
|
by marcosdumay
2497 days ago
|
|
I do hate this fashion of tunneling everything through HTTP, but then: - Email protocols are all shit. The email ecosystem still didn't evolve into a format where we can safely transit binary data around. It is still risky to rely even on octet encodings, so there is very little binary data on emails anyway, it's mostly 7bit strings. - The numbers in emails are nearly all strings. The very few integers are encoding content length and are not necessary with HTTP. - We have much better odds of having message push that actually works everywhere with an HTTP protocol, mostly because many of our computers are configured to serve ads first, and ads use HTTP push. That said, I do look forward into all the interesting problems HTTP will create for large emails. |
|
The only significant characters in email are carriage return, line feed, and period. There's also a line length limit in the SMTP protocol specification. Other than that, bytes sent during the DATA phase are sent unaltered.
Base64 encoding is meant to address this, but it results in a 33% overhead in attachment size. On the usenet side, people came up with an encoding scheme called yenc that actually only escapes those characters mentioned above and only as a 2 to 3% overhead over the original file size.