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

PGP/Mime Support and HTML/Multipart Support #25

Open
holzhannes opened this issue Jul 26, 2017 · 9 comments
Open

PGP/Mime Support and HTML/Multipart Support #25

holzhannes opened this issue Jul 26, 2017 · 9 comments

Comments

@holzhannes
Copy link

First of all thanks for this very cool plugin.
I noticed messages are PGP/Inline signed and encrypted. It would be nice if it would be possible to have PGP/Mime encrypted/signed mails instead.
At the moment the plugin is treating all emails as plaintext mails. Therefore html mails will be signed html sourcecode. With PGP/Mime it is also possible to send encrypted html mails.

@holzhannes holzhannes changed the title PGP/Mime Support and HTML/Mulitpart Support PGP/Mime Support and HTML/Multipart Support Jul 26, 2017
@fabacab
Copy link
Owner

fabacab commented Jul 26, 2017

To be blunt, I am unlikely to do the work to support this. I understand that it's possible but I'm not personally motivated to do this because I do not use (or accept) HTML email. I'll very happily merge a pull request to support this, though. Thanks for the suggestions, regardless. :)

@holzhannes
Copy link
Author

holzhannes commented Jul 27, 2017

Thanks for your reply I will check if I can do this and of course create a pull request if I am finished.

@fabacab
Copy link
Owner

fabacab commented Jul 27, 2017

Sure. Let me know if you need any guidance or have questions about the current implementation. I'm happy to help, just not going to take the lead on this feature. :)

@belle-isle
Copy link

Quite agree that this would be a needed feature, since in the meantime it renders HTML emails useless and painful.

@p7996619
Copy link
Contributor

I just discovered that the rendering/decrypting of PGP encrypted HTML mails doesn't work because of the exact same issue as in #31. (tested with Outlook and GpgOL)

As I understand it, the email would still be in PGP/INLINE format after filtering the text/html content type, but that should work with most mail clients/plugins though.

So maybe that is the actual issue that @holzhannes described.

@fabacab
Copy link
Owner

fabacab commented Dec 15, 2018

rendering/decrypting of PGP encrypted HTML mails doesn't work because of the exact same issue as in #31. (tested with Outlook and GpgOL)

Yeah, this is a known issue since currently no support for PGP/MIME is implemented yet. This is distinct from S/MIME entirely and also different than multi-part MIME. Our work so far has focused solely on ensuring proper handling of unmodified MIME header handling, S/MIME multi-part MIME handling, and plain email Content-Type header handling.

PGP/MIME is another chunk of work that should probably have its own branch and work-in-progress pull request.

@p7996619
Copy link
Contributor

p7996619 commented Dec 15, 2018

Ok, I think I get it now. The PGP/INLINE body does not contain any mail headers therefore it won't work with HTML emails.

@fabacab
Copy link
Owner

fabacab commented Dec 15, 2018

I get that PGP/MIME is not implemented yet and completely different, but thats actually not what I'm referring to. Even PGP/INLINE does currently not work if the email is sent with text/html content type.

Yes, sorry, I should have been more clear: "HTML email with PGP currently does not work at all, because PGP/MIME is not implemented." So, this is currently the expected behavior. In order for PGP to work with HTML in email, we basically have to implement PGP/MIME. We probably should do that eventually, but I'm not very excited about doing it because I just hate HTML email all together. :\

@heinrich-k
Copy link

I would really like if the eMail generated would be of a correct content type: Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";

I thought it was an issue with Thunderbird and opened a bug there. Their analysis is in the Bugzilla tracker
https://bugzilla.mozilla.org/show_bug.cgi?id=1722340

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

No branches or pull requests

5 participants