Bug 425803

Summary: "Send Later" sends immediately
Product: [Applications] kmail2 Reporter: Brendon Higgins <brendon>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: kishore96, montel
Priority: NOR    
Version: 5.14.1   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Brendon Higgins 2020-08-25 20:24:58 UTC
STEPS TO REPRODUCE
1. Compose an email.
2. Use "Send Later" in the Message menu, enable "Delay" to Send at, e.g., one hour later (the default).
3. Click "Send Later".

OBSERVED RESULT
The Send Later agent pops up a notification as it sends the email without delay, and the recipient receives it immediately.

EXPECTED RESULT
The email is sent at the time that was specified in the Send Later dialog.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Comment 1 Laurent Montel 2020-08-27 06:36:31 UTC
Work fine here.
Comment 2 Brendon Higgins 2020-08-28 00:20:45 UTC
Thanks, Laurent. Hmm, something is definitely screwey here, though. I tested on a fresh user account and it does it there, too. If I set the delay time sufficiently far into the future then it doesn't do it. So I tried a binary search, and ended up concluding that it doesn't matter what time you set: if it's for the same day, the message will get sent immediately.

I'm wondering if timezones might also factor in, but no evidence as yet.
Comment 3 Kishore Gopalakrishnan 2021-12-12 10:08:13 UTC
At least on my machine, the email doesn't get sent. However, I do get a notification (whose text is the subject line of the email). This notification is a bit misleading, because it contains a button 'undo send'. Clicking this button just removes the email from the list of emails that is scheduled to send later (File > Delayed messages). I think this could be solved by renaming the button in the notification to 'unschedule send' (or some other wording that makes it clear that the email still hasn't actually been sent).