Open Bug 1975456 Opened 1 year ago Updated 1 year ago

Translate the names of IMAP folders for iCloud Mailboxes into German

Categories

(Thunderbird :: Folder and Message Lists, enhancement)

Thunderbird 128
x86_64
Linux
enhancement

Tracking

(Not tracked)

People

(Reporter: cooperbang, Unassigned)

References

Details

Attachments

(1 file)

Attached image Folders.png —

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Firefox/140.0

Steps to reproduce:

Establish a connection to an iCloud mailbox via IMAP at imap.mail.me.com.

Actual results:

Some folder names are not shown in German.

Expected results:

They should be translated:

Sent Messages -> Gesendet
Deleted Messages -> Gelöscht
Archive -> Archiv
Notes -> Notizen

Component: Untriaged → Folder and Message Lists
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Version: unspecified → Thunderbird 128

Archives is not recognized (bug 1908529).
For the other ones, I do believe they come from the server.

See Also: → 1908529

Thanks for your answer.
Does this imply that the Apple server sends the names in a combination of English and German?

Probably depends on your locale. I had it as English and got English results myself.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1908529#c2
You can do an IMAP log to see what it lists for you. See https://wiki.mozilla.org/MailNews:Logging

Thanks for the infos.

When I set the locale to English, all folders are named in English.
However, when I set the locale to German, two folders remain in English.

Is it possible for Thunderbird to translate all folder names so they appear correctly in German?

The Mail app on iPhone shows the following:

Eingang = Inbox
Entwürfe = Drafts
Gesendet = Sent Messages
Spam = Junk
Papierkorb = Deleted Messages
Archiv = Archive

IMAP log:

[Parent 6306: IMAP]: I/IMAP 7fb23427e400:imap.mail.me.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST () "/" "Archive"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST () "/" "Junk"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST (\Noinferiors) "/" "INBOX"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST () "/" "Notes"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST (\Trash) "/" "Deleted Messages"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST (\Sent) "/" "Sent Messages"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST () "/" "Drafts"
[Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: 71 OK LIST completed (took 1 ms)

Why are some folder names translated (e.g. Entwürfe / Drafts) while others are not?

I was referring to the locale in the icloud account settings, not within Thunderbird. (And probably the original locale when created there?)

Anyway, thanks for the listing, that explains things. Inbox is translated since its special (and can never be anything but INBOX).
We don't get a Drafts flagged folder, so use the default and thus it gets translated as well.
For Sent Messages / Deleted Messages we do get those folders with flags as they should. Since we get them we can't really translate after that. You could easily have e.g. a Sent AND a Sent Messages folder on the server, and then you couldn't know which is which.

Thanks, but I don´t understand it completely:

--> [Parent 6306: IMAP]: I/IMAP 7fb23427d600:imap.mail.me.com:A:CreateNewLineFromSocket: * LIST () "/" "Drafts"
A "Drafts" entry is displayed in the logs, and in Thunderbird it appears as 'Entwürfe' along with its corresponding icon (see attachment)."

  • Does Thunderbird translate Drafts zu Entwürfe?
  • And why is the iOS Mail app able to map "Sent Messages" to "Gesendet", while Thunderbird cannot?

Not sure if this is relevant, but see my 3rd post here: https://developer.apple.com/forums/thread/694251
Back in 2021 I was seeing a LANGUAGE capability advertised, but I no longer see it now. Back then, when TB responded to it an error was returned with parameter "en-US". I assume that when reporter cooperbang would send the command from his location that TB would request icloud to provide German names for folders in LIST responses. But don't know if reporter is seeing the LANGUAGE capability when connected to icloud in imap log. I'm not seeing it here any more.

Anyhow, I installed the current DE locale daily TB and created a new profile with only icloud. I only see Inbox in DE as Posteingang and all the other "special" folders have the English names returned by icloud LIST responses. (Also, since icloud doesn't consider Archive a special folder with flag \Archives, it shows up as a normal folder (which, of course, already mentioned).

I also tried to change my language at icloud site to DE. It doesn't seem to really change anything (even after logout/login). Reporter cooperbang, is is your language set to DE at icloud?
Also, in the past with older TB versions did this work for you as you want with icloud?

Finally, FWIW, I was asked to do a similar exercise with gmail a few years ago and, if I remember right, all the special folders were translated there. I know I had to run a DE locale TB and set gmail webmail site to DE too.

Edit: According to google "AI" you have to set your icloud account location to "Germany" and language to "German" for imap to return special folder names in german. It doesn't work for me. Icloud (per log) is still just sending english names (e.g., "Deleted Messages") even after re-connecting imap. So apparently TB only translates Inbox (most special folder) and not any of the other special folder names and just uses the literal names received in the LIST responses.
That's probably why icloud got rid of their broken LANGUAGE capability since they only send back in LIST responses the english names and expect the client to do the translation, which apparently TB doesn't do (except for inbox).

Reporter cooperbang, is is your language set to DE at icloud?

Yes, it is set to DE.

You can set the language using your iOS device:
https://support.apple.com/en-lb/guide/icloud/mm4c87549383/icloud#mme9cd5e7e61

It doesn´t change the language of the IMAP folders.

(In reply to cooperbang from comment #9)

You can set the language using your iOS device:
https://support.apple.com/en-lb/guide/icloud/mm4c87549383/icloud#mme9cd5e7e61

It doesn´t change the language of the IMAP folders.

I changed location and lang. to DE at icloud account (don't have iOS device). It accepted it and both now show German/Germany. But don't see anything different when I look at the icloud webmail site (all folder names english) and imap still returning just english names for special folders.
I don't know if you have a gmail account, but if you do, does it show special folder names in DE?

Also, in your comment 0 attachment you show draft folder as Entwürfe. How is that getting translated? Maybe the attachment is not TB?
More info: see "Edit" on comment 7.

Edit: Never mind. Magnus explained it in comment 5.

See Also: → 1817707

I don't know if you have a gmail account, but if you do, does it show special folder names in DE?

  • All folders of my Gmail account are displayed in German in Thunderbird.
  • Only the folders Inbox and Drafts of my iCloud account are displayed in German in Thunderbird.

I looked at this some more and can't figure out what is wrong in TB that "Deleted Messages" and "Sent Messages" (which are "flagged" as \Trash and \Sent in the icloud server LIST response) are not translated to the German names Papierkorb and Gesendet.
All the other "special" folder are getting translated, even though they are not flagged with a "special" flag in their LIST responses:

Posteingang = Inbox
Entwürfe = Drafts
Spam = Junk
Archiv = Archive
Vorlagen = Templates (I may have created a Template folder at webmail, not sure)

But to get these to work I had to do one thing. Under "Nachrichtenarchiv" I had to select the 2nd radio button "Anderer Ordner:" and select folder Archiv or Archive. This caused Archiv and the others to display the German words (except, of course, "Deleted Messages" and "Sent Messages" remained in English).

I did find a way to get "Deleted Messages" and "Sent Messages" to show the German words in TB. At the icloud webmail you have to create new top level folders called Trash and Sent in English. (You can probably do this from TB, but I didn't test this.)
Then at icloud mail site, there is a "gear" button at the top that allow you to select "Settings" and then "Mailbox behavior". This allow you to change which folder icloud uses for sent message and and deleted messages. Set these to the new folders Sent and Trash. This will cause icloud to now list the original folders "Sent Messages" and "Deleted Messages" as normal folders that can now be deleted if you want (once any messages are moved out).
On TB restart (or by triggering folder re-discovery), the folders "Trash" and "Sent" will be returned in imap LIST response with flags \Trash and \Sent and the names will be shown in TB translated to German. At least it does for me running a recent self-built daily with the corresponding German language pack installed as an add-on.
You may also need to select the trash folder in TB server settings under In diesen Ordner verschieben: and the sent folder under under folder settings at Beim Senden von Nachrichten automatisch, at least I think I did.

Of course, this is a work-around and all this should just happen "automagically" without having to manually create any folders or change selections in TB settings.

Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: