Bug 472461

Summary: Emails sent from EWS accounts are not properly encrypted by GPG
Product: [Applications] kmail2 Reporter: Jeffrey Bouter <kde>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.23.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: broken result
working result

Description Jeffrey Bouter 2023-07-21 09:03:49 UTC
Created attachment 160420 [details]
broken result

SUMMARY

When sending emails originating from an EWS account, emails are not properly encrypted using GPG. Encryption happens, but the other end is not able to decrypt the messages. The other way around, however, works fine.

I've connected two email accounts to my kmail. One is personal and using IMAP, the other is my work account using EWS.


STEPS TO REPRODUCE
1. Add an EWS account to kmail
2. Set up a GPG key for said account (if not present already)
3. Send an encrypted email to a different account

OBSERVED RESULT

Receiving side is unable to decrypt the email

EXPECTED RESULT

Receiving side is able to decrypt the email

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Arch Linux
KDE Plasma Version: 5.27.6
KDE Frameworks Version:  5.108.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION

Please see attached screenshots
Comment 1 Jeffrey Bouter 2023-07-21 09:04:02 UTC
Created attachment 160421 [details]
working result