GNOME Bugzilla – Bug 738457
Cannot delete messages without Trash mailbox
Last modified: 2021-07-05 13:24:56 UTC
On IMAP accounts without a trashcan, delete does nothing. shift-delete or right-click delete does work. Ideally it should be possible to nominate a folder/label as a trashcan. Alternatively it should be possible to at least inform the user about the problem. on 0.8.1, gnome 3.12.
What IMAP server/service are you using without a trash can? Geary will attempt to create a Trash folder if the account does not have one. There are issues with this (notably, if the server has a user namespace, i.e. bug #726866). Letting the user select the Trash folder (and other special folders) is ticketed at bug #714106.
Shared hosted service, so guessing from 'telnet ... 143': Guess Dovecot: (so possible duplicate of #726866) * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE NAMESPACE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready. Inbox Drafts Sent Mail Spam Outbox 0 LIST "" "*" * LIST (\HasChildren) "." INBOX * LIST (\HasNoChildren) "." INBOX.Junk * LIST (\HasNoChildren) "." INBOX.Drafts * LIST (\HasNoChildren) "." INBOX.Sent 0 OK List completed.
0 CREATE INBOX.Trash and restart geary has the desired effect. Of course, now I need a "empty trash" command :)
Geary now ensures that a Trash folder now exists when initially connecting to a server on startup. In theory it shouldn't require a Trash however, and this may still be a problem if the Trash folder is deleted when Geary is running.
Geary now has also an "empty trash" command (in reply to comment #3). To sum it up: it's normal that Geary cannot delete (i.e. move to Trash) if the Trash folder is not set up on the server. Mike, what's the current status of this? Your last comment seems to suggest that Geary can now work around a missing Trash folder. This check is made each time it connects to the server? Or only the first time it checks the credentials? Perhaps we need a more precise title for this ticket.
I think it should currently be possible to hard-delete (e.g. shift+delete) without a Trash, so perhaps Geary should default to that when it does not exist?
Yes, it should, according to the description of the bug above. The reporter suggested also to warn the user about the missing Trash folder. I guess that once bug #714106 is implemented there will be a proper solution for this problem. Should we add a dependency on that?
Good call about the dep, thanks. Just added it then.
I've just hit another possible situation: the special folder does exist on the server, but Geary doesn't pick it up, so actions which depend on these folders won't work: archive won't move the conversation if the Archive folder is listed under Labels instead of being on the special folders list (in Geary). Now I have my account 2 (dovecot) suddenly without special folders. I cannot save to draft, cannot archive, cannot move to trash and sent emails are not saved. Related: Bug #714775 - change the way special folders are instantiated
Not sure if this is related, but I see weird errors on `journalctl -xe`, which confirm the fact that special folders detection is broken somehow n my laptop, after I removed old Geary configuration and databases to re-add my accounts from scratch. Mike, I sent some private emails to you about this problem. dic 19 13:45:37 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:37 116,818126 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_DRAFTS: Server reports error creating folder .Drafts: a099 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator dic 19 13:45:37 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:37 0,051122 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_SENT: Server reports error creating folder .Sent: a100 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator dic 19 13:45:37 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:37 0,047848 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_SPAM: Server reports error creating folder .Junk: a101 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator dic 19 13:45:37 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:37 0,047055 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_TRASH: Server reports error creating folder .Trash: a102 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator dic 19 13:45:37 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:37 0,046374 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_ARCHIVE: Server reports error creating folder .Archive: a103 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator dic 19 13:45:41 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:41 4,118391 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_SPAM: Server reports error creating folder /Indesiderata: a093 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator dic 19 13:45:41 fedora org.gnome.Geary.desktop[12133]: *[wrn] 13:45:41 0,070271 geary: imap-engine-generic-account.vala:907: Unable to ensure special folder GEARY_SPECIAL_FOLDER_TYPE_ARCHIVE: Server reports error creating folder /Archivio: a094 NO [CANNOT] Invalid mailbox name: Begins with hierarchy separator
I've kind of understood the problem and found a workaround here: bug 714775#c2
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/geary/-/issues/ Thank you for your understanding and your help.