Bug 453343

Summary: KMail unable to send encrypted emails when using X.509 certificate and self encryption
Product: [Applications] kmail2 Reporter: David <kitt997>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.19.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description David 2022-05-03 14:22:13 UTC
SUMMARY
If self encryption is activated for sent messages, when selecting a X.509 certificate to encrypt emails Kmail refuses to proceed.

STEPS TO REPRODUCE
1. Set an X.509 certificate to sign/encrypt in current identity
2. Create a new email to a recipient there exist a valid key for, and activate encryption
3. Click send

OBSERVED RESULT
KMail says "no valid encryption keys are found" to encrypt for myself, even though the key is set and works perfectly (tested in Kleopatra)

EXPECTED RESULT
It should of course work.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.5-200.fc35.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620