gpgol/web: Replys to (and forwards of) encrypted mails default to empty in outlook
Open, Needs TriagePublic

Assigned To
Authored By
tfry
Mon, Jun 22, 11:40 AM
Subscribers

Description

Cause:
Reply / forward try to decrypt the original message *again*, but only if `KMime::Message::isEncrypted()` returns true (which it does not in case of mails mangled by outlook).

The whole class of problems could be avoided by not re-parsing the message. That needs some extra API in mimetreeparser, though, to either allow retrieving the parsed message from MessageViewer classes, or allow those to work with an existing ObjectTreeParser instance.

Event Timeline

This will be much easier to solve with https://invent.kde.org/pim/mimetreeparser/-/merge_requests/109 (T7377) and https://invent.kde.org/pim/mimetreeparser/-/merge_requests/110 . Will need to adjust MailTemplates::forward() MailTremplates::reply(), after that.