Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deleting an attachment of a decrypted encrypted message stored on a remote server
(e.g. an IMAP server) causes KMail to upload the decrypted content of the message
to the remote server. This is not easily noticeable by the user because KMail does
not display the decrypted content.
  • Loading branch information
Ingo Klöcker authored and tsdgeos committed Apr 29, 2021
1 parent 99b50c2 commit 3b5b171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messageviewer/src/viewer/viewer_p.cpp
Expand Up @@ -396,7 +396,7 @@ bool ViewerPrivate::deleteAttachment(KMime::Content *node, bool showWarning)

KMime::Message *modifiedMessage = mNodeHelper->messageWithExtraContent(mMessage.data());
mMimePartTree->mimePartModel()->setRoot(modifiedMessage);
mMessageItem.setPayloadFromData(modifiedMessage->encodedContent());
mMessageItem.setPayloadFromData(mMessage->encodedContent());
auto job = new Akonadi::ItemModifyJob(mMessageItem, mSession);
job->disableRevisionCheck();
connect(job, &KJob::result, this, &ViewerPrivate::itemModifiedResult);
Expand Down

0 comments on commit 3b5b171

Please sign in to comment.