Bug 349711 - KMail 4.14.9 hangs when sending (signed) message
Summary: KMail 4.14.9 hangs when sending (signed) message
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.6.0
Platform: Other Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-29 10:43 UTC by Axel Braun
Modified: 2022-11-26 13:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2015-06-29 10:43:10 UTC
Boot the system, open Kontact, pick a mail from the draft folder to a recipient that is set to 'always sign' and send it.
Result: The sandclock turns, and KMail does not react in any windows. After a long timeout (~10-15 minutes) the dialog to enter the passphrase for GPG shows up (this is usually a thing of microseconds).
Password is entered, mail is sent.


Reproducible: Always

Steps to Reproduce:
1. see above
2.
3.
Comment 1 Axel Braun 2015-11-13 13:23:58 UTC
Having had some trouble with the 'hang on send' , my impression is that it is not necessarily related to GPG signature, but has to do with network connectivity - if you have used KDE without network, it is more likely to hang.
After killing a hanging KMail and restarting akonadi, turning KMail into offline mode and switching the network physically off with the RF kill switch, I can use KMail sending the mails that previously hang (at least into the send folder). As soon as I turn the network on (KMail still in offline mode), the sending of mails hangs again. Rebooting the PC does not help.
Appears in 4.14.10 as well
Comment 2 Denis Kurz 2017-06-23 20:22:50 UTC
This bug has never been confirmed for a Kontact version that is based on KDE Frameworks, except possibly a Technology Preview version 5.0.x. Those versions differ significantly from the old 4.x series. Therefore, I plan to close it in around two or three months. In the meantime, it is set to WAITINGFORINFO to give reporters the opportunity to check if it is still valid. As soon as someone confirms it for a recent version (at least 5.1, ideally even more recent), I'll gladly reopen it.

Please understand that we lack the manpower to triage bugs reported for versions almost two years beyond their end of life.
Comment 3 Axel Braun 2017-06-26 08:00:47 UTC
Just had the same issue this morning: Starting up KMail 5.5.1 including Akonadi, pick on mail, answer, set 'sign Message and hit 'send'. Sandclock turns, and KMail is blocked. I can see in the main screen that new messages arrive, but I have to kill KMail completely to interact (work) with it again. Sadly, most part of the message intended to send is lost....
Comment 4 Axel Braun 2017-06-26 08:06:05 UTC
Sorry, was already KMail 5.5.2
Comment 5 Axel Braun 2017-06-26 08:11:54 UTC
And another info...it is not necessary to sign a mail, happens as well with unsigned mails.
I started kontact from the console, but at the time when trying to send the mail, no messages appear in the terminal.
Same symptoms appear when the network connection is not there when you start kontact, e.g. because you have to log into the Wifi first, or authenticate in the browser
Comment 6 Axel Braun 2017-09-06 09:28:34 UTC
Actually this is still an issue on KMAil 5.6.0
After startup of the Laptop I first have to log in on a webpage to get internet access.
When I send a mail the whole frontend freezes, although I see notifications that new mails are coming in.

My guess is that Kmail does not properly detect once it is online or offline.
If I use the killswitch of the laptop to physically disconnect all network, start kmail and write a mail, 'send' command puts it into the outbox. Once network is turned on, I can use 'send mail in outbox'. That works. But next mail I write fucks it up again.
Not to mention that you lose the mail content you have just composed....
Comment 7 Axel Braun 2017-09-06 09:29:14 UTC
removing crypto, as it fails as well without crypto
Comment 8 Axel Braun 2018-07-03 07:55:37 UTC
In 5.8.2 I found that sending is completely blocked (you have to kill the kmail-process!) if the S/MIME certificate that is set in the identity is expired.
Once the certificate is removed, everything works as expected.
I guess this is causing the big timeouts when sending as well. Can you verify this?
Comment 9 Justin Zobel 2022-11-26 00:13:47 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 10 Axel Braun 2022-11-26 13:02:12 UTC
Seems to work in between