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 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

Reply via email to