If you want to send an signed/encrypted message and the signing/encryption process fails kmail crashes.
Steps to Reproduce:
1. Create a mail
2. remove secect keys ( for signing mails), hitting cancel at the pinentry
3. click send button
get a propper error message
I already created a patch for it :
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
M +5 -3 messagecomposer/job/encryptjob.cpp
M +7 -2 messagecomposer/job/signencryptjob.cpp
M +5 -3 messagecomposer/job/signjob.cpp