FYI.
Reason why Tb currently ignores trash folder selection if Gmail IMAP.
1. Gmail dynamically changes IMAP folder name according to "Display Language:"
choice by user at Web Interface.
At Web Interface, folder name of Inbox is also changed to localized name
according to "Display Language:" if localized name is defined.
2. Real folder name at Gmail IMAP server for special folder is passed in XLIST
command response which is extention by Gmail.
According to RFC for IMAP, Inbox is always shown as "Inbox" to IMAP client.
3. Tb currently uses folder returned for trash in XLIST response always.
Some reasons why:
3-A. mail.server.serverN.trash_folder_name is static setting.
To use differet folder as trash folder, the different folder should be
selected by user via trash folder selection UI at Server Settings.
(can be called "current restriction", after dynamic folder name change)
(was introuced by Gmail/Gmail IMAP.)
If mail.server.serverN.trash_folder_name is always used, Tb can't find
trash folder when "Display Language:" is changed by user.
It'll produce unwanted problems, because Trash is very special and
important folder for current implementation of Tb.
3-B. If localized Tb, trash folder selection UI stores localized folder name
for Trash in mail.server.serverN.trash_folder_name. (known bug)
By "always use trash in XLIST response", this known bug is avoided.
3-C. After trash selection change at Server Settings, bug 631362 happens.
By "always use trash in XLIST response", bug 631362 is avoided.
3-D. If Inbox/Trash is defined, Tb uses Inbox/Trash instead of Trash as
trash folder(known bug. due to issue in namespace=Inbox support.),
even when mail.server.serverN.trash_folder_name=Trash or [Gmail]/Trash.
By "always use trash in XLIST response", this problem is avoided.
So, this bug for Gmail IMAP can be called "current restriction" on Gmail IMAP's trash folder.
This kind of restriction is not applicable to Junk folder selection at Junk Settings and drafts/sent folder selection at Copies&Folders. Junk/Drafts/Sent which is set in Junk Setting/Copies&Folders is always used.
FYI. serverN. trash_folder_ name is static setting. serverN. trash_folder_ name is always used, Tb can't find serverN. trash_folder_ name. (known bug) serverN. trash_folder_ name=Trash or [Gmail]/Trash. Copies& Folders is always used.
Reason why Tb currently ignores trash folder selection if Gmail IMAP.
1. Gmail dynamically changes IMAP folder name according to "Display Language:"
choice by user at Web Interface.
At Web Interface, folder name of Inbox is also changed to localized name
according to "Display Language:" if localized name is defined.
2. Real folder name at Gmail IMAP server for special folder is passed in XLIST
command response which is extention by Gmail.
According to RFC for IMAP, Inbox is always shown as "Inbox" to IMAP client.
3. Tb currently uses folder returned for trash in XLIST response always.
Some reasons why:
3-A. mail.server.
To use differet folder as trash folder, the different folder should be
selected by user via trash folder selection UI at Server Settings.
(can be called "current restriction", after dynamic folder name change)
(was introuced by Gmail/Gmail IMAP.)
If mail.server.
trash folder when "Display Language:" is changed by user.
It'll produce unwanted problems, because Trash is very special and
important folder for current implementation of Tb.
3-B. If localized Tb, trash folder selection UI stores localized folder name
for Trash in mail.server.
By "always use trash in XLIST response", this known bug is avoided.
3-C. After trash selection change at Server Settings, bug 631362 happens.
By "always use trash in XLIST response", bug 631362 is avoided.
3-D. If Inbox/Trash is defined, Tb uses Inbox/Trash instead of Trash as
trash folder(known bug. due to issue in namespace=Inbox support.),
even when mail.server.
By "always use trash in XLIST response", this problem is avoided.
So, this bug for Gmail IMAP can be called "current restriction" on Gmail IMAP's trash folder.
This kind of restriction is not applicable to Junk folder selection at Junk Settings and drafts/sent folder selection at Copies&Folders. Junk/Drafts/Sent which is set in Junk Setting/