GNOME Bugzilla – Bug 729136
[GMail] Deleting a message in Drafts directory won’t discard a draft
Last modified: 2019-08-11 11:36:55 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
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.
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.
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.
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.
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.
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.
You should be aware of bug #726728 being closed. That could help work around this problem, but it won't fix it.
*** Bug 772184 has been marked as a duplicate of this bug. ***
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!
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!