<table><tr><td style="">mkoller created this revision.<br />mkoller added a reviewer: mlaurent.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />mkoller requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28596">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>In KMCopyDecryptedCommand, when decrypting a mail fails, it will try to create a new Akonadi::Item with no payload, which fails.</p>

<p>This patch simply checks for the return value of MailCommon::CryptoUtils::decryptMessage() and if no mail is returned, it will use the original mail (same behavior as if an unknown encryption is found in CryptoUtils)</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>"copy decrypted mail to..." with a mail which can not be decrypted<br />
(I have such mails but I still need to investigate why they can not be decrypted)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R206 KMail</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28596">https://phabricator.kde.org/D28596</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kmcommands.cpp</div></div></div><br /><div><strong>To: </strong>mkoller, mlaurent<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>