GpgOL: Forwarding a mail with attachment as crypto mail removes attachment
Open, HighPublic

Description

When forwarding an unsigned / unencrypted mail with an attachment as a crypto mail it was reported that the attachment of the mail was removed.

Prio High as this can be very unexpected.

I was able to reproduce this when I forwarded the mail after opening it in a new window. Somehow that appears to influence it.

It looks like the content-id is the problem causing the attachment to be hidden.

The code had the assumption that a content-id
could only exist on an attachment for HTML mails as it otherwise
does not make sense.

But when forwarding mails with attachments they somehow
get a content id and thus in the case of plain text mails
they were filtered out.