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

Supporting multipart/signed and multipart/encrypted messages #134

Open
ianmcorvidae opened this issue Mar 18, 2019 · 1 comment
Open

Supporting multipart/signed and multipart/encrypted messages #134

ianmcorvidae opened this issue Mar 18, 2019 · 1 comment

Comments

@ianmcorvidae
Copy link

This is a new feature request, and I won't be terribly bothered if this is rejected as too niche, but I thought it would be worth starting a conversation. I don't have an immediate use case, but implementing signed and/or encrypted email notifications as part of a service would maybe be a good organizing idea for why someone would want this.

It might be nice if there's a way to create multipart/signed messages with gomail, for example to use PGP/MIME and S/MIME rather than needing to use inline variants of these schemes. As far as I can tell from https://github.com/go-gomail/gomail/blob/81ebce5c23dfd25c6c67194b37d3dd3f338c98b1/writeto.go#L30-40 this is currently not supported.

I'm not sure what the best way to integrate this with the gomail API would be, however, whether it'd best be an "escape hatch" into lower-level options for assembling the message (with users handling the creation of the encrypted or signed parts and their signatures), directly integrating golang.org/x/crypto/openpgp and similar (i.e. gomail handling the signing and encryption too), or some other means.

@pedromorgan
Copy link

see #108 and #107

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