Closed Bug 1140831 Opened 9 years ago Closed 9 years ago

Localized Thunderbird creates a redundant Trash folder with a localized name

Categories

(Thunderbird :: Folder and Message Lists, defect)

38 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 480393

People

(Reporter: mozilla, Unassigned)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150307004822

Steps to reproduce:

After upgrading Thunderbird (Earlybird) to version 37a2 in Japanese environment, 2 "ごみ箱" (it means trash box in Japanese) folders came to be listed in the folder pane at every account.
This phenomenon is still continues on Tb 38a2.
And it doesn't occur in English enviroinment.



Actual results:

2 folders have different imap path, a folder that path is /Trash and another one that path is /%26MFQwf3ux- (encoded ごみ箱).

Deleted mails go into the /%26MFQwf3ux- folder.
2 ごみ箱 folders are listed in the setting below, but deleted mails go into there even if I choosen whichever.
setting: Account Settings -> Server Settings -> When I delete a message -> Move it to this folder = ごみ箱
(I wrote above in English, but the actual label is displayed in Japanese.)

Both folders can't be deleted.
(Tb might recognize /%26MFQwf3ux- folder as a special folder same as /Trash.)
If I delete /%26MFQwf3ux- at server side, it is made automatically after restarting Tb.
(In reply to Kengo Tsukamoto from comment #0)
> 2 "ごみ箱" (it means trash box in Japanese) folders came to be listed in the folder pane at every account.
> 2 folders have different imap path, a folder that path is /Trash
> and another one that path is /%26MFQwf3ux- (encoded ごみ箱).

It's pretty norml situation if both mbox named "Trash" and mbox named "ごみ箱" exist at server.
   Because localized name of "/Trash" is "ごみ箱" in ja version of Tb, /Trash is shown as "ごみ箱" at folder pane. 
   Because actual mbox name of "/ごみ箱" is "ごみ箱", "/ごみ箱" is shown as "ごみ箱" at folder pane. 

> And it doesn't occur in English enviroinment.

If English version of Tb, localized name is not used(or localized name can be called "Trash"), so "/Trash" is shown as "/Trash", and "/ごみ箱" is shown as "ごみ箱" because Tb supports Japanese mbox name even in English version.

>  Account Settings -> Server Settings -> When I delete a message -> Move it to this folder = ごみ箱
> (I wrote above in English, but the actual label is displayed in Japanese.)

Did you set it via UI of Japanese versuon of Tb?
What string is set in mail.server.server#.trash_folder_name?
   mail.server.server#.trash_folder_name = Trash  => mbox named /Trash at server is used as trash folder
   mail.server.server#.trash_folder_name = ごみ箱 => mbox named /ごみ箱 at server is used as trash folder
This is current design/implementation.

If you set mail.server.server#.trash_folder_name via trash folder selection UI of localized Tb, localized name is set in trash_folder_name by UI.
This is already known issue. See bug 480393 and bugs in dependency tree. See also bug 491424 for namespace case.

> Both folders can't be deleted.

If you choose "Just mark it as deleted", special folder flag of "Trash" is removed and special icon for "Trash" is removed, then you can do rename/delete/move etc.
(In reply to WADA from comment #1)

Hi, WADA.
Thank you for your comment.

> It's pretty norml situation if both mbox named "Trash" and mbox named "ごみ箱"
> exist at server.
>    Because localized name of "/Trash" is "ごみ箱" in ja version of Tb, /Trash
> is shown as "ごみ箱" at folder pane. 
>    Because actual mbox name of "/ごみ箱" is "ごみ箱", "/ごみ箱" is shown as "ごみ箱" at
> folder pane. 

Yes, the folder named "ごみ箱" certainly exists at server, but it is not what I have created.
The folder is what Tb created by itself.

> >  Account Settings -> Server Settings -> When I delete a message -> Move it to this folder = ごみ箱
> > (I wrote above in English, but the actual label is displayed in Japanese.)
> 
> Did you set it via UI of Japanese versuon of Tb?

Yes, I did set it via Japanese UI.
To explain it, I only confirmed the label of English.

> What string is set in mail.server.server#.trash_folder_name?

- in English environment
  mail.server.server#.trash_folder_name = Trash
- in Japanese environment
  mail.server.server#.trash_folder_name = ごみ箱
is set.

I thought whether this parameter's value was something wrong.
So, I tried the following procedures:

1. I changed this value from ごみ箱 to Trash, then restart Tb.
  After restarting, 2 ごみ箱 folders' icon were both replaced to folder logo from trash logo.
  At this point: mail.server.server#.trash_folder_name = Trash

2. I restarted Tb again.
  1 ごみ箱 folder's icon was back to trash logo, another was still folder logo.
  At this point: mail.server.server#.trash_folder_name = ごみ箱 (I didn't change it)

3. I retarted Tb once again.
  Both folders' icon were back to trash logo.
  At this point: mail.server.server#.trash_folder_name = ごみ箱

By the way, when I checked it in Tb 31.5.0, the value is set to "Trash" in Japanese environment.

>    mail.server.server#.trash_folder_name = Trash  => mbox named /Trash at
> server is used as trash folder
>    mail.server.server#.trash_folder_name = ごみ箱 => mbox named /ごみ箱 at server
> is used as trash folder
> This is current design/implementation.

I think that Tb(Earlybird) changes the value from Trash to ごみ箱 in Japanese environment, then Tb creates the folder named ごみ箱 because it doesn't exist.

> If you set mail.server.server#.trash_folder_name via trash folder selection
> UI of localized Tb, localized name is set in trash_folder_name by UI.
> This is already known issue. See bug 480393 and bugs in dependency tree. See
> also bug 491424 for namespace case.

To tell the truth I have already browsed these bugs.
However, I thought that there were not direct relations with this matter...

> If you choose "Just mark it as deleted", special folder flag of "Trash" is
> removed and special icon for "Trash" is removed, then you can do
> rename/delete/move etc.

Oh, surely becomes so.
I didn't know that.
This does not only happen with Japanese localization, but with others as well.

I have just deleted the folder called "Šiukšlinė" directly on my server like 20 times, just to find out that Thunderbird recreates at when re-launched.

Apparently, the recipy to trick Tb into doing the right thing is to set the appropriate about:config settings to "Trash" manually.

Very annoying.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Thunderbird makes redundant Trash folder in Japanese environment → Localized Thunderbird creates a redundant Trash folder with a localized name
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
Attached image before.png
Attached image after.png
It's not a duplicate, because version 31.5.0 of Thunderbird doesn't have this bug. It's a serious regression which would affect any non-english IMAP user.

Steps to reproduce:
In polish 31.5.0 everything works ok. There is folder "Kosz" (in Polish it means Bin) that links to "/Trash" on imap server.
Deleted mails goes there as intended. (screenshot before.png)

Close Thunderbird 31 and run polish Thunderbird 38b1.

After first run of 38b1, everything looks ok.
I deleted mail and it went to Kosz - /Trash.

When i closed Thunderbird 38b1 and run it again (second run of Thunderbird 38b1), second folder "Kosz" appeared. It links to "/Kosz" on imap server. Deleting mails send them to "Kosz" that links to "/Trash".

After another restart of Thunderbird (third run of Thunderbird 38b1), there are still 2 folders named "Kosz" ("/Trash" on server and "/Kosz" on server), but now newly deleted mails goes to "Kosz" linked to "/Kosz". (screenshot after.png).
Please reopen - it is not the same bug as bug #480393 from 2009. It's a regression which would generate tens or hundreds of bug reports if it won't be corrected until TB38 general availability.
Flags: needinfo?(m-wada)
(In reply to WADA from comment #1)
> It's pretty norml situation if both mbox named "Trash" and mbox named "ごみ箱"
> exist at server.
>    Because localized name of "/Trash" is "ごみ箱" in ja version of Tb, /Trash
> is shown as "ごみ箱" at folder pane. 
>    Because actual mbox name of "/ごみ箱" is "ごみ箱", "/ごみ箱" is shown as "ごみ箱" at
> folder pane. 

No it is not. Normal situation is that localized name is only shown in the UI and non-localized name "Trash" is used on server. And this is how it has worked for at least 5 years.
Flags: needinfo?(m-wada)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: