I have a proposed solution to this. I would like some feedback before I
attempt a patch.

As WADA mentioned in Comment 32, the reason for the restriction on
choosing the Trash folder for a GMail account is that TB is using XLIST
to get the trash folder. Whenever TB starts up, the value from the XLIST
writes over any user specified value.

There are a couple of ways to work around this:

#1 Patch Thunderbird (aka the hard way)
---------------------------------------
We could add a 4th option to "Account Settings... > <Account> > Server Settings 
> When I delete a message:"

Current options are:
- Move it to this folder (which is ignored is server supports XLIST)
- Just mark it as deleted (setting recommended by google)
- Remove it immediate

New option would be:
- Use server specified folder

The new option would be selected by default for servers that support XLIST and 
be disabled for servers that do not support XLIST. Functionally it would work 
the same as "Move it to this folder" does now.
If the server supports XLIST and "Move it to this folder" is selected, then the 
value returned by XLIST will be ignored and the user specified folder will be 
used.

This could be a good thing for other IMAP users (not just GMAil) that
want to bypass a server specified Trash folder.

#2 Use an extension (aka the easy way, aka the shameless plug)
--------------------------------------------------------------
There is an extension (that I wrote) for using Thunderbird with GMail - 
https://addons.mozilla.org/en-US/thunderbird/addon/gmailbuttons/

As I was fixing a problem that was introduced in TB 16 that broke my
extension, I came across this bug. It turns out that in fixing the other
problem, I have created a work-around for this bug. Note that currently,
this only applies to TB 16 and v0.5.0 of the extension (both currently
in beta).

If you select the trash folder you want in "Server Settings > Move it to
this folder" and click OK, then open the settings again and select "Just
mark it as deleted", then the Gmail Buttons extension will "remember"
your selection and use that folder for its "Trash" button.

-- 
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 Mail and News:
  Confirmed
Status in “thunderbird” package in Ubuntu:
  New

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     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to