6.0.0-alpha14
7/2/25

[#11110] Multiple copies of drafts getting created
Summary Multiple copies of drafts getting created
Queue IMP
Queue Version 6.0.0beta3
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester thayu4u (at) gmail (dot) com
Created 03/28/2012 (4844 days ago)
Due
Updated 10/15/2012 (4643 days ago)
Assigned 03/29/2012 (4843 days ago)
Resolved 10/02/2012 (4656 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/15/2012 08:41:51 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git (develop):

commit 5044023f5ea421c3e3a85702b46bb735bc0384f4
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Oct 1 22:06:42 2012 -0600

     Bug #11110: Don't save multiple copies of a draft.

  imp/lib/Compose.php |   19 ++++++-------------
  1 files changed, 6 insertions(+), 13 deletions(-)

http://git.horde.org/horde-git/-/commit/5044023f5ea421c3e3a85702b46bb735bc0384f4
10/02/2012 04:07:47 AM Michael Slusarz Comment #8
Assigned to Michael Slusarz
State ⇒ Resolved
Version ⇒ 6.0.0beta3
Reply to this comment
Implemented in IMP 6, since we have a Template facility now.  (Not 
backporting to IMP 5 for this reason.)
10/02/2012 04:06:59 AM Git Commit Comment #7 Reply to this comment
Changes have been made in Git (master):

commit 5044023f5ea421c3e3a85702b46bb735bc0384f4
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Mon Oct 1 22:06:42 2012 -0600

     Bug #11110: Don't save multiple copies of a draft.

  imp/lib/Compose.php |   19 ++++++-------------
  1 files changed, 6 insertions(+), 13 deletions(-)

http://git.horde.org/horde-git/-/commit/5044023f5ea421c3e3a85702b46bb735bc0384f4
03/29/2012 04:58:21 PM Michael Slusarz Comment #6 Reply to this comment
This indeed sounds like a bug to me. Continuously saving drafts 
should always overwrite the last saved version.
IIRC, It was specifically coded this way so that a user could create a 
drafts message and then create various subdrafts based on the first 
message.  Now that true IMAP-based Templates are available in IMP 6, 
they may not be needed anymore.
03/29/2012 09:33:51 AM thayu4u (at) gmail (dot) com Comment #5
New Attachment: Multi_drafts_1.png Download
Reply to this comment
This indeed sounds like a bug to me. Continuously saving drafts 
should always overwrite the last saved version. I think this already 
works fine when automatically saving drafts. Can you verify this?
Hi,

Thanks for the heads up. I did try out the scenario you mentioned. Its 
reproducible for the "Automatic" drafts saving feature too.

1. Logged in as a user.
2. Went to "Preferences" settings.
3. Selected "Drafts" menu and set the auto save time to ** 1 Minute **.
4. Created a new mail and it got saved to drafts section in a minute.
5. From the drafts section, selected the mail, hit "Resume" and did 
come content changes.
6. Another new copy of the same mail got saved in the drafts section.

Please refer the attached screen shot.

Also noticed that, if the compose window is kept in "open state" and 
any changes made to the content, the same mail is getting updated 
using the auto save feature. No duplicate copies are created.

This issue occurs only when the mail compose window is closed and the 
user uses the "Resume" feature to continue with the mail.

Hope this brings more clarity to the issue.

Thanks,
Thay

03/29/2012 09:05:34 AM Jan Schneider Comment #4
State ⇒ Feedback
Reply to this comment
This indeed sounds like a bug to me. Continuously saving drafts should 
always overwrite the last saved version. I think this already works 
fine when automatically saving drafts. Can you verify this?
03/29/2012 04:56:21 AM thayu4u (at) gmail (dot) com Comment #3
New Attachment: Multi_drafts.png Download
Reply to this comment
Nope, that's exactly the desired behavior.  A draft is ONLY deleted 
when it is successfully sent.
Hi,

I accept that the draft is deleted once the mail is sent. But the 
other copies are still present in the draft section. Please refer the 
attached screen shot.

1. Logged in as a user.
2. Created a new mail and saved it.
3. Went to Drafts folder section and selected the email.
4. Clicked on "Resume" option.
5. Without any changes i hit the "Save as Draft" link.
6. Another copy of the same mail is saved in the drafts section.


7. Viz in the attached screen shot, you can see there are 3 copies.
8. if I select copy 3, and hit send then it is deleted.
9. But the first 2 copies are still present.

Our biggest concern is, these multiple copies must not be created.

Hope this explains the issue. Please let me know if you need more inputs.

Thanks,
Thay
03/28/2012 04:46:53 PM Michael Slusarz Comment #2
State ⇒ Not A Bug
Priority ⇒ 1. Low
Reply to this comment
Nope, that's exactly the desired behavior.  A draft is ONLY deleted 
when it is successfully sent.
03/28/2012 01:13:44 PM thayu4u (at) gmail (dot) com Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Multiple copies of drafts getting created
Due ⇒ 04/05/2012
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

Multiple copies of drafts are getting created in Horde. Scenario

Steps.

1. Assume you are using Horde email.
2. Go to Compose section and create a new mail.
3. Save it to the drafts section.
4. Go to drafts section and click resume to continue from the same.
5. Now without any changes click on "Save Now" multiple times.
6. New copies of the mail are saved based on your clicks.

Expected Result

The same mail must be saved without creating duplicate copies.

Actual Result

Duplicate copies of the same mail is created.

Saved Queries