stalwartlabs / mail-builder

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

Addition of BodyPart::Raw #17

Closed mdsimmo closed 1 year ago

mdsimmo commented 1 year ago

I'd like to be able to write a custom encoding type, as allowed for by RFC 2045 p.15.

This body type would operate exactly like BodyType::Text/Binary, but not add any Content-Transfer-Encoding headers, and directly write a raw [u8] to the output.

mdecimus commented 1 year ago

You can add use a Binary part and add the headers you need manually. No changes are needed in the code to support this.

mdecimus commented 1 year ago

This is now possible on version 0.3.1, available on the repo.