stalwartlabs / mail-builder

E-mail builder library for Rust
https://docs.rs/mail-builder/
Apache License 2.0
54 stars 17 forks source link

support 8-bit content encoding? #4

Open alexwennerberg opened 2 years ago

alexwennerberg commented 2 years ago

I'm not super familiar with email specs, but is there any reason why this library doesn't support 8-bit content-encoding? Is it not well-supported by clients and servers?

https://datatracker.ietf.org/doc/html/rfc6152

mdecimus commented 2 years ago

It is not supported at the moment because RFC5322 requires messages to be US-ASCII. In addition to that, lines in a message cannot exceed 998 characters so an 8-bit part exceeding this limit has to be encoded using quoted-printable to comply with RFC5322 anyway. That being said, I'll keep this issue open so support for 8-bit encoding is added as a configuration flag.