Commit ea20c418 authored by Sandro Knauß's avatar Sandro Knauß
Browse files

fix(mesasgecomposer): encrypted and signed message like encrypted

Summary:
From the message structure a signed&encrypted message should look like a
simple encrypted message, to not leak any information to the outside
world. This also make the tests for SignEncryptJob passes.

No the output for OpenPGPMime is a mail, that has the signed only content
in first mime part and the encrypted mail in the second part. This is for
sure not that what we want.

Test Plan: run autotests successfuly.

Reviewers: #kde_pim

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D28728
parent a4f16d63
...@@ -209,7 +209,7 @@ void SignEncryptJob::process() ...@@ -209,7 +209,7 @@ void SignEncryptJob::process()
QByteArray signatureHashAlgo = res.first.createdSignature(0).hashAlgorithmAsString(); QByteArray signatureHashAlgo = res.first.createdSignature(0).hashAlgorithmAsString();
d->resultContent = MessageComposer::Util::composeHeadersAndBody(d->content, encBody, d->format, true, signatureHashAlgo); d->resultContent = MessageComposer::Util::composeHeadersAndBody(d->content, encBody, d->format, false, signatureHashAlgo);
emitResult(); emitResult();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment