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

[Mime] Allow custom encoders for parts #54973

Closed
KDederichs opened this issue May 17, 2024 · 0 comments · Fixed by #54975
Closed

[Mime] Allow custom encoders for parts #54973

KDederichs opened this issue May 17, 2024 · 0 comments · Fixed by #54975

Comments

@KDederichs
Copy link
Contributor

Description

Add the ability to add custom encoders to Parts (DataPart/TextPart).
Currently you already have a list of registered encoders but it's private static (and has no values as far as I can tell).
In addition to that you also hard code the 3 encodings and throw errors when trying to pass another one.

It would be good if you could just add custom encoders (via constructor or addEncoder method)

Example

The reason I want to use this is I'm trying to implement Soap Attachments (SwA, https://en.wikipedia.org/wiki/SOAP_with_Attachments ), which is basically SOAP encapsulated with Multipart/related Mime parts, so using a Raw Email format is the best starting point for this I think.

That specific protocol supports binary encoding but sadly I can't easily add an encoder for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants