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

Optimize Entity.WriteTo #86

Open
emersion opened this issue Apr 25, 2020 · 1 comment · May be fixed by #87
Open

Optimize Entity.WriteTo #86

emersion opened this issue Apr 25, 2020 · 1 comment · May be fixed by #87

Comments

@emersion
Copy link
Owner

When the charset and Content-Transfer-Encoding haven't been modfiied, we can avoid decoding and re-encoding the entity's body. We can just pipe the original message's body.

Related to #84

@emersion
Copy link
Owner Author

On that note, maybe we should introduce a WriterTo interface. This could allow e.g. go-smtp to use 8-bit encodings if the SMTP server supports 8BITMIME.

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.

1 participant