Incorrect mail tree in IMAP account

RESOLVED INCOMPLETE

Status

MailNews Core
Networking: IMAP
RESOLVED INCOMPLETE
9 years ago
6 years ago

People

(Reporter: Renato S. Yamane, Unassigned)

Tracking

1.9.1 Branch
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [closeme 2012-04-01])

Attachments

(2 attachments)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.0.7) Gecko/2009032018 Firefox/3.0.4 (Debian-3.0.6-1)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2

Hi,

I have a IMAP account, and some folders is created by Thunderbird and is impossible remove it.

E.g.
My IMAP account have a folder named "Itens enviados" (this mean "Sent itens" in english), but Thunderbird create other one named "Sent"... So I have 2 folders with the same function.

The same problem with Draft folder.
My IMAP account have a "Rascunhos" folder (this mean "Draft" in english), but Thunderbird create other one named "Draft".

So, again, I have 2 folders with the same function.

I tried remove "Sent" and "Draft" folders from:
~/.thunderbird/RANDON.default/ImapMail/imap.mandic.com.br/INBOX.sbd/

But when Thunderbird is started, this folders is created again.

Regards,
Renato

Reproducible: Always

Actual Results:  
Thunderbird 3B2 create some folders by itself.

Expected Results:  
IMAP server is the reference.
Only display folders that exist in IMAP server.
(Reporter)

Comment 1

9 years ago
Created attachment 370455 [details]
File to show whats happening
> Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2
> IMAP account
> folder named "Itens enviados" (this mean "Sent itens" in english)
> but Thunderbird create other one named "Sent"...
> "Rascunhos" folder (this mean "Draft" in english),
> but Thunderbird create other one named "Draft".

See Bug 480393 for IMAP folder name related issue of localized build.
See Bug 467860 if Gmail IMAP is relevant.

Gmail IMAP?
If Gmail IMAP, do you choose " other than English(US) at "Gmail display langugese:" setting of Gmail Web Interface ?
If Gmail IMAP, did you define Gmail IMAP account via "account wizard for Gmail IMAP" of Tb 3 Beta?

Does pt-BR version of Tb use localized name for standard IMAP mail folder such as   Inbox, Drafts, Junk, Sent, Templates, Trash?
If yes, which folder name is set in your in prefs.js for identity (Sent, Drafts, Template), server (Junk, Trash)? (check via Config Editor)

Which is real folder name at your IMAP server? English name? Localized name?
See folder property of each folder, and check file path.
(Reporter)

Comment 3

9 years ago
Hi Wada!
Don't is Gmail account.
This is a pay-service-mail (www.mandic.com.br)

Tb use localized names (Draft = Rascunhos; Trash = Lixeira) in GUI, but if I open webmail, this folders have original names (draft, sent) created by Thunderbird.

Real folders in IMAP server have localized names:
- Rascunhos (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Rascunhos)
- Itens enviados (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Itens%20Enviados)

And NOT:
- Draft (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Drafts)
- Sent (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Sent)

$ grep -i draft .thunderbird/hk69t2cr.default/prefs.js | grep -i imap
user_pref("mail.identity.id1.draft_folder", "imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Rascunhos");
user_pref("mail.identity.id2.draft_folder", "imap://yamane%40mandic.com.br@imap.mandic.com.br/Drafts");

$ grep -i sent .thunderbird/hk69t2cr.default/prefs.js | grep -i imap
user_pref("mail.identity.id1.fcc_folder", "imap://yamane%40mandic.com.br@imap.mandic.com.br/Sent");
user_pref("mail.identity.id2.fcc_folder", "imap://yamane%40mandic.com.br@imap.mandic.com.br/Sent");
(Reporter)

Comment 4

9 years ago
Created attachment 370616 [details]
IMAP Tree in Webmail
(In reply to comment #3)
> Tb use localized names (Draft = Rascunhos; Trash = Lixeira) in GUI,
> but if I open webmail, this folders have original names (draft, sent) created by Thunderbird.
>(snip)
> Real folders in IMAP server have localized names:
> - Rascunhos (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Rascunhos)
> - Itens enviados
> (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Itens%20Enviados)
> And NOT:
> - Draft (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Drafts)
> - Sent (imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Sent)

(For Drafts/Junk/Sent/Templates)
Choose folder(which is corresponds to INBOX/Rascunhos etc. at IMAP server) at Copies&Folders and Junk settings UI.

(For Trash)
Because Tb 3 beta/latest-trunk has problem of Bug 480393, you have to change prefs.js setting manually if you use delete model of "Move to trash".
(1) At trash folder selection box of "Move to trash" in Server Settings, Choose folder corresponds to INBOX/???(??? is localized Trash at IMAP server) folder of IMAP server. 
(2) Via Config Editor, change trash folder name to Inbox/??? (??? is localized Trash at IMAP server)
(3) Restart Tb
(4) Never touch trash folder selection UI.

If you can't distinguish "folder name localized by IMAP server" with "folder name localized by TB", download en-US build and do above (1) to (3) with en-US build.
(Reporter)

Comment 6

9 years ago
(For Sent folder):
Thunderbird give me only the option to "Move to *sent* folder in account xxxx"

But my IMAP account don't have "Sent folder". Correct is "Sent itens", so I still have 2 folders ("Sent" and "Sent itens").

Incorret:
imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Sent

Correct:
imap://yamane%40mandic.com.br@imap.mandic.com.br/INBOX/Itens%20Enviados
"Other:" of folder setting UI == other than ('my' && 'Sent') folder.
i.e. "Other:" == "my non-Sent folder" + "other one's folder".
(Reporter)

Comment 8

9 years ago
Folder setting UI? I don't find it.

I check in Copies&Folders: My config is "Don't save sent messages", but I try check the field "Save a copy in: Other folder" and select "Itens Enviados", but the folder "Sent" is still present in Thunderbird.

Regards,
Renato
(In reply to comment #8)
> I check in Copies&Folders: My config is "Don't save sent messages", (snip)

Why do you need to set sent folder name, which is for automatic save of sent mail data upon your mail send, even though you want/choose "Don't save sent messages"?
Oh, you need to delete root level Sent which Tb created and considers sent folder.
(1) Enable "Save sent mail" option, select your drafts folder at "Others:"
(2) Restart Thunderbird => root level Sent becomes normal folder => Delete it
(3) Disable "Save sent mail" option
(Reporter)

Comment 11

9 years ago
I set all folders as I want, in:
Edit --> Config Accounts --> Copies and Folders.

And after, I go to webmail and delete all unecessary folders.

I need go to webmail because Thunderbird don't allow me delete some folders (as "Draft" folder). If I use right mouse button, I can't see "Delete" option.

I need delete "Draft" folder because correct mail tree in my account use folder named as "Rascunho" and not "Draft".

Regards,
Renato
Renato can you try with newer build. with implemented XList since and they should help - using 3.0b3 should be fine. If the issue is still present :

 * are there any error message in tools -> Error console ?
 * Can you provide us with an imap log , when you try to delete the folder. https://wiki.mozilla.org/MailNews:Logging should explain you how to get the log for imap protocol.
Component: Folder and Message Lists → Networking: IMAP
Product: Thunderbird → MailNews Core
QA Contact: folders-message-lists → networking.imap
Version: unspecified → 1.9.1 Branch

Comment 13

9 years ago
xlist is only for gmail so it won't help here.
(In reply to comment #11)
> If I use right mouse button, I can't see "Delete" option.

Renato, did you do similar steps I wrote in Comment #10(it'sfor Sent) for Drafts?

Did you change Copies&Folders for draft of all identities?
If yes, icon of "Drafts" is "Manila paper folder" like one? Or "Letter Paper" like icon for drafts folder? Do you restart Tb after Copies&Folders for draft setting change?

"restart of Tb is required to reset attribute of draft/sent/trash etc." is already known problem. It's the reason why step (2) exists in Comment #10.
Renato ?

Comment 16

6 years ago
Do you still see this in recent versions?

(In reply to Ludovic Hirlimann [:Usul] from comment #15)
> Renato ?
Whiteboard: [closeme 2012-04-01]
(Reporter)

Comment 17

6 years ago
Oh man, this is too old :-)
I'm not using Thunderbird anymore...

Comment 18

6 years ago
thanks for the update. I suspect anything that might not yet be fixed is covered in bugs already mentioned.

wada, please reopen if I am incorrect
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.