niax / rust-email

Implementation of MIME Messages for Rust
MIT License
62 stars 34 forks source link

Support RFC2047 encoding on Header's to_string #3

Open niax opened 9 years ago

niax commented 9 years ago

Headers should (as required) use RFC2047 encoding when being coerced into a string for inclusion in a MimeMessage.

It should:

Valodim commented 4 years ago

I'm two layers downstream and needed this, so I implemented an RFC 2047 encoder. It doesn't tick all of the boxes from above yet, but I believe it does q-encoding correctly, which should cover the hardest part: https://crates.io/crates/rfc2047