After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 729136 - [GMail] Deleting a message in Drafts directory won’t discard a draft
[GMail] Deleting a message in Drafts directory won’t discard a draft
Status: RESOLVED INVALID
Product: geary
Classification: Other
Component: engine
0.6.x
Other Linux
: Normal normal
: ---
Assigned To: Geary Maintainers
Geary Maintainers
: 772184 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-04-28 18:52 UTC by Simonas Kazlauskas
Modified: 2019-08-11 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simonas Kazlauskas 2014-04-28 18:52:49 UTC
With an Google Apps (should be equivalent to GMail) account, deleting a message in drafts directory will remove it from interface, but will not actually discard it or decrease a number displayed near Drafts in sidebar. Clicking on the Drafts directory on sidebar will load the deleted drafts again.

Discarding the message in Webmail interface will make the draft disappear.

Steps to reproduce:

1. Use geary with Google Apps/GMail account;
2. Get yourself some disposable drafts;
3. Try discarding drafts by deleting them either by using Delete/Backspace key or by clicking Trash button in Geary interface;
4. Click on drafts directory again, observe just-deleted draft reappearing.

Reproducable: Always
Comment 1 Jim Nelson 2014-05-06 20:51:08 UTC
Yorba uses Google Apps and I can't reproduce this problem.  If you can reproduce every time, it would be helpful if you could run Geary like this:

$ geary --debug --log-network > geary.log

Reproduce the problem for one or two messages and attach the log here.  If it contains private information, you can email us at geary@yorba.org.
Comment 2 Simonas Kazlauskas 2014-05-07 07:31:19 UTC
Yes, I can. One thing I noticed that geary reports `Junk` AND `Trash` IMAP folders (`Junk` probably being one used by GMail) available and that after deleting, in gmail interface there was a label IMAP/Trash added to draft I attempted to discard.

I sent the log to the email provided.
Comment 3 Jim Nelson 2014-05-13 18:57:58 UTC
I looked over your log.  It's strange; in the log I see the IMAP commands for moving the draft to the Trash being issued (copy, store \deleted flag, expunge) and all complete without error.  But the expunge operation should generate an EXPUNGE server response, which is does not, and when the IMAP close command is issued on the folder, that too should expunge the message, but it doesn't.  When you opened the Drafts folder again it was still there, and without the \deleted flag.

In Gmail's settings there two options under IMAP/POP that are relevant here:

* Auto-Expunge On/Off
* Archive/Trash/Delete forever when expunged

How are those set for you?  I've tried some combinations on my own account but don't see anything different.
Comment 4 Simonas Kazlauskas 2014-05-13 19:02:52 UTC
Auto-Expunge is enabled.

“When a message is marked as deleted expunged from the last visible IMAP folder” is set to “Archive the message (default)” and the radio inputs are disabled therefore I can’t change this option.
Comment 5 Jim Nelson 2014-05-15 20:09:27 UTC
Have you tried using Delete rather than Trash in Geary?  If you hold down the Shift key, the Trash button will turn into a Delete button.
Comment 6 Simonas Kazlauskas 2014-05-15 20:16:41 UTC
I did now. It is removed from Drafts’ list and moved to (Trash) Bin. While behaviour is not exactly like draft discard in GMail UI, it is quite satisfactory.
Comment 7 Jim Nelson 2014-05-28 01:47:40 UTC
You should be aware of bug #726728 being closed.  That could help work around this problem, but it won't fix it.
Comment 8 Michael Gratton 2016-09-30 01:00:37 UTC
*** Bug 772184 has been marked as a duplicate of this bug. ***
Comment 9 ponyesteves 2016-09-30 12:45:55 UTC
I've run into de same problem! Adding form gmail interface Imap Sync to Trash (not [Gmail]IMAP/Trash label but the folder)  was the solution.. With that configuration both delete and move to trash works on geary!
Comment 10 Michael Gratton 2019-08-11 11:36:55 UTC
I can't reproduce the problem any more with default Gmail IMAP settings on the current development mainline branch. As such I'm going to close this for the moment.

If you can reproduce it still with 3.34 when released, please either reopen or file a new bug at https://gitlab.gnome.org/GNOME/geary/issues with steps to reproduce. Thanks!