Bug 328013

Summary: Kmail Crashes when errors occure while sending mails
Product: [Applications] kmail2 Reporter: Sandro Knauß <sknauss>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: 4.11.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.4

Description Sandro Knauß 2013-11-24 15:11:08 UTC
If you want to send an signed/encrypted message and the signing/encryption process fails kmail crashes.

Reproducible: Always

Steps to Reproduce:
1. Create a mail
2. remove secect keys ( for signing mails), hitting cancel at the pinentry
3. click send button

Actual Results:  
kmail crashes

Expected Results:  
get a propper error message
Comment 1 Sandro Knauß 2013-11-24 15:22:37 UTC
I already created a patch for it :
https://git.reviewboard.kde.org/r/114081/
Comment 2 Sandro Knauß 2013-11-24 21:01:41 UTC
Git commit 3e6d73d847502d1e7d273a4532b543a8835a93b8 by Sandro Knauß.
Committed on 24/11/2013 at 13:49.
Pushed by knauss into branch 'KDE/4.11'.

Fixes: Kmail Crashes when errors occure while sending mails

When a subjob fails just emitResult right after it ent exit the
function.
FIXED-IN: 4.11.5
REVIEW: 114081

M  +5    -3    messagecomposer/job/encryptjob.cpp
M  +7    -2    messagecomposer/job/signencryptjob.cpp
M  +5    -3    messagecomposer/job/signjob.cpp

http://commits.kde.org/kdepim/3e6d73d847502d1e7d273a4532b543a8835a93b8