Strip HTML if mail was decrypted, or decrypt HTML containing PGP/INLINE?

See attached EML.

The problem is that when a user uses a webmail service or such, along with a PGP addon, the message
is being packaged (by the webmail service) in a multipart/alternative with a HTML and PLAIN part.

Only the plain part are decrypted, even when I have checked the box inside web interface that it should convert HTML to plain.

When the email is then opened in a mail client, the HTML part, which is “still encrypted” is shown.
Is it possible to either:
Decrypt all parts, including the HTML part
--or--
Strip out the HTML part – but ONLY if the mail was encrypted or signed, so the client only show the text/plain part.

Best regards, Sebastian Nielsen

Re_DjigzousersSecurityoftheX-Djigzo-Info-headers.eml|attachment (4 Bytes)

See attached EML.

Can you send me the EML directly (off list). It looks like the maillist
list server stripped of some contents.

The problem is that when a user uses a webmail service or such, along
with a PGP addon, the message is being packaged (by the webmail
service) in a multipart/alternative with a HTML and PLAIN part.

Only the plain part are decrypted, even when I have checked the box
inside web interface that it should convert HTML to plain.

The option "Convert HTML to plain" is only for outgoing PGP email. If
you sent an email with HTML, the HTML will then be converted into text
only before the message will be PGP/INLINEd. This is not required when
using PGP/MIME.

When the email is then opened in a mail client, the HTML part, which
is “still encrypted” is shown. Is it possible to either: Decrypt all
parts, including the HTML part --or-- Strip out the HTML part – but
ONLY if the mail was encrypted or signed, so the client only show the
text/plain part.

The problem with PGP/INLINE is that there is no standard for HTML.
Enigmail for example disables HTML by default when using PGP/INLINE even
though they have support for HTML with PGP/INLINE. If you want to fully
support HTML with PGP, the best approach would be to use PGP/MIME.
Unfortunately not all PGP clients support PGP/MIME :frowning:
That said, it would be nice if the CipherMail gateway has better support
for HTML mail (it supports HTML with the non standard encoding used with
PGP universal).

Can you add a JIRA request entry for this?

https://jira.djigzo.com/

Kind regards,

Martijn Brinkers

···

On 03/10/2015 12:39 PM, Sebastian Nielsen wrote:

--
CipherMail email encryption

Open source email encryption gateway with support for S/MIME, OpenPGP
and PDF messaging.

Twitter: http://twitter.com/CipherMail