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 Desktop
Packages, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/885525

Title:
  Deleting a Gmail Message Always Sends Item to [Gmail]/Trash

Status in Mozilla Thunderbird:
  Confirmed
Status in thunderbird package in Ubuntu:
  Incomplete

Bug description:
  Thunderbird 7.0.1, Ubuntu 11.10

  Gmail accounts do not obey the setting in Account Settings -->
  [Account] --> Server Settings --> When I delete a message

  I changed this to move the message to Gmail's "All Mail" folder,
  attempting to imitate the Gmail web interface's "Archive" option.
  However, regardless of setting, the item always moved to Trash. This
  persisted after restart of the client. The settings save, but have no
  effect.

  Caveat: This was tested on two Google Apps for Domains accounts,
  though I suspect this behavior will happen with gmail.com accounts as
  well.

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/885525/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to