The invocation is like this: KToolInvocation::invokeMailer(email, QString(), QString(), subject, text); text is in this case is a PGP encrypted message, (also) encrypted to my own private key. When the KMail window shows up the _decrypted_ text is show, i.e. KMail will itself decrypt the text. If the message is only encrypted to someone else the message is kept as KMail can't decrypt it. If the text is expected to be sent encrypted and the user isn't very careful the text may accidentially be sent unencrypted. Reproducible: Always
do i understand ypu correctly: you run KToolInvocation::invokeMailer with an encrypted text. Than kmail will decrypt this text and send the mail with then unencrypted text. Right? Can you write a small test app for that - this makes it easier for me to reproduce.
I currently can't test this because of bug 332368.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!