Saving mails unencrypted saves them encrypted
Open, NormalPublic

Assigned To
Authored By
m.eik
Nov 6 2024, 12:24 PM
Subscribers

Description

Happens when trying File -> Save unencrypted in the message window.

Event Timeline

m.eik triaged this task as Normal priority.Nov 6 2024, 12:24 PM
m.eik created this task.

Notes: This currently relies on CryptoHelper::decryptMessage() in mimetreeparser. That in turn re-implements all the decrypt handling that we already have elsewhere, except it fails on a lot of the (many) corner cases. In Outlook, it already breaks at the message no longer being properly typed as multipart/encrypted.

What we should do, instead, is to rely on the already parsed representation, and reassemble that into MIME format. We don't even need a complete implementation (e.g. of multipart/alternative), as long as we warn users, when we may have dropped stuff. We're already dropping crypto information, anyway.