Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of BodyPart::Raw #17

Closed
mdsimmo opened this issue Apr 28, 2023 · 2 comments
Closed

Addition of BodyPart::Raw #17

mdsimmo opened this issue Apr 28, 2023 · 2 comments

Comments

@mdsimmo
Copy link

mdsimmo commented Apr 28, 2023

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
Copy link
Member

mdecimus commented May 3, 2023

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
Copy link
Member

mdecimus commented Aug 4, 2023

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

@mdecimus mdecimus closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants