Bug 412895

Summary: Attachment detector should not trigger while saving as draft
Product: [Applications] kmail2 Reporter: Kishore Gopalakrishnan <kishore96>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: minor CC: montel
Priority: NOR    
Version: 5.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.12.3

Description Kishore Gopalakrishnan 2019-10-13 05:19:44 UTC
SUMMARY
The attachment detector triggers even if one saves as draft, and one has to select the confusingly worded 'send as is' to actually save the draft without attaching a file.

STEPS TO REPRODUCE
1. File > New > New Message
2. Type 'attachment' in the message body
3. You get a blue bar that reminds you to attach a file
4. Click Message > Save as Draft
5. You get a warning box with three options: 'attach file', 'send as is', or 'cancel'.
6. Clicking 'send as is' allows the draft to be saved without attaching a file.

OBSERVED RESULT
One has to click 'send as is' to save the draft, which is a bit confusing for the user. 

EXPECTED RESULT
The attachment detector should only trigger while sending the message, but not while saving as draft.

SOFTWARE/OS VERSIONS
Linux distro: Arch Linux
KDE Plasma Version: 5.16.90
KDE Frameworks Version: 5.62.0
Qt Version: 5.13.1
Comment 1 Laurent Montel 2019-10-13 09:17:48 UTC
Interesting bug. I will investigate soon.
Comment 2 Laurent Montel 2019-10-14 06:55:42 UTC
Git commit 96c0e3ed5a01a41264ecb215f1b8bb8b4fee324e by Laurent Montel.
Committed on 14/10/2019 at 06:55.
Pushed by mlaurent into branch 'Applications/19.08'.

Fix Bug 412895 - Attachment detector should not trigger while saving as draft

FIXED-IN: 5.12.3

M  +6    -4    src/editor/kmcomposerwin.cpp

https://commits.kde.org/kmail/96c0e3ed5a01a41264ecb215f1b8bb8b4fee324e