I recently discovered this problem and wanted to share a workaround that preserves key parts of my preferred use model:
(1) I can press the Delete key on the keyboard, or the delete button in the GUI, to remove mail from my Inbox (or other folders), while preserving them in a folder (All Mail) where messages are not automatically deleted after 30 days. (2) I can periodically purge old messages at a timeframe of my choosing, in a simple way. I'm achieving (1) as follows: In Thunderbird: Account Settings->Server Settings->When I delete a message: "Remove it immediately" "Remove it immediately", in the context of Gmail, doesn't have the same outcome as it might on other conventional IMAP servers. It does set the IMAP "Deleted" flag on the message, but in Gmail, all that effectively does is only remove it from the current folder. The message remains accessible in Gmail's "All Mail" folder. In Gmail: Settings->When I mark a message in IMAP as deleted: "Auto-Expunge on" This just simplifies things for my use case by ensuring that Gmail's actions are immediately synced up with Thunderbird's actions. References: https://support.google.com/mail/answer/77657 https://support.google.com/mail/answer/78755 https://support.google.com/mail/answer/78892 I'm achieving (2) with the following Google Apps Script: https://script.google.com/d/1xWTKAwhyul0SVGYrhWdHSMX1wylsfemcjmrsUX6NwxE1Jzj9_M53uJEG/edit?usp=sharing This script automatically moves messages in "All Mail" older than 3 years into Gmail's Trash folder, where they will be then subject to Gmail's autodeletion policy. It excludes unread messages, Inbox messages, and messages that are in any of my user folders. With Resources->Current project's triggers, I have set this to automatically run every month. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/885525 Title: Deleting a Gmail Message Always Sends Item to [Gmail]/Trash To manage notifications about this bug go to: https://bugs.launchpad.net/thunderbird/+bug/885525/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs