Closed Bug 490752 Opened 15 years ago Closed 13 years ago

When a new folder is made, the garble is caused.

Categories

(Thunderbird :: Folder and Message Lists, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: blackcat, Unassigned)

References

()

Details

(Whiteboard: [closeme 2011-06-01])

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2

When a new folder is made, the garble is caused. 
However, when you contain MBCS in the folder name. 

Reproducible: Always

Steps to Reproduce:
1.OpenCreate folder dialog box.
2.Enter folder name.(include Multi Byte Character)
3.Press Enter key.

Actual Results:  
The folder name seems to be garbled on ThunderBird.


There is no problem when confirming it on the WEB site.
I presume that you're using an IMAP server, correct?

Could you provide us with a log of what happens when you create a new folder? See
<https://wiki.mozilla.org/MailNews:Logging>.

I am currently unable to test an IMAP setting that involves creating folders, but creating local folders had no respective garbling of name.
I cannot guarantee be correct because the IMAP server is a rental server. 
It operates normally additionally though the message with insufficient number of sessions is often received from ThunderBird. 

The log was not able to be acquired though the BAT file was made referring to URI for the log. 

I think that I can try by setting POP3 though the procedure for making the folder in the local is not understood. 

Moreover, the garbled folder often returns normally by restarting ThunderBird several times. 
It is likely to fail in the reception though the transmission of the instruction has succeeded because of this. It feels it.
> Actual Results:  
> The folder name seems to be garbled on ThunderBird.

To bug opener:
Garbled at where? Folder pane? Same problem as Bug 450754? 
Bug 450754 is already fixed, but it is possibly not landed on Tb3.0b2. Can you produce problem with latest-trunk?

If "garbled file name" for ".msf" file, it's design. Tb uses passed "modified UTF-7" string for file name.
On my Gmail prowered imap server - I can create folders containing Icelandic and danish characters. No garbled.

Blackcat - can you try to do this :

 - close Thunderbird
 - Start->run in windows type cmd.exe
 - type set NSPR_LOG_FILE=%APPDATA%\imap.log
 - type set NSPR_LOG_MODULES=imap:5
 - drag and drop the Thunderbird 3.0b2 icon onto the cmd.exe window
 - press enter - thunderbird should start
 - reproduce the issue
 - close thunderbird 
 - in the cmd window type explorer %APPDATA%

you should be able to locate the imap.log file that way.
I am sorry for the answer's slowing. 

I tried variously. 
It is not always generated.
It is generated in the following cases. 
  1.Create folder
  2.Rename folder
  3.Moving folder

And, when it is restarted several times, the problem is repaired. 

It is imap.log when creating it as follows.

--- log start ---

0[1724140]: 3751c00:mail.blackcatlab.com:NA:SetupWithUrl: clearing IMAP_CONNECTION_IS_OPEN
3428[37683c0]: ImapThreadMainLoop entering [this=3751c00]
3428[37683c0]: 3751c00:mail.blackcatlab.com:NA:ProcessCurrentURL: entering
3428[37683c0]: 3751c00:mail.blackcatlab.com:NA:ProcessCurrentURL:imap://test%40blackcatlab%2Ecom@mail.blackcatlab.com:143/select%3E.INBOX:  = currentUrl
3428[37683c0]: ReadNextLine [stream=359e0c8 nb=242 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:NA:CreateNewLineFromSocket: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.

3428[37683c0]: 3751c00:mail.blackcatlab.com:NA:SendData: Logging suppressed for this command (it probably contained authentication information)
3428[37683c0]: ReadNextLine [stream=359e0c8 nb=16 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:NA:CreateNewLineFromSocket: 1 OK LOGIN Ok.

3428[37683c0]: 3751c00:mail.blackcatlab.com:A:SendData: 2 namespace

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=68 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=27 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: 2 OK NAMESPACE completed.

3428[37683c0]: 3751c00:mail.blackcatlab.com:A:SendData: 3 lsub "" "INBOX.*"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=43 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Trash"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=42 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Junk"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=42 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Sent"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=44 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * LSUB (\HasNoChildren) "." "INBOX.Drafts"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=21 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: 3 OK LSUB completed

3428[37683c0]: 3751c00:mail.blackcatlab.com:A:SendData: 4 lsub "" "#shared.*"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=21 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: 4 OK LSUB completed

3428[37683c0]: 3751c00:mail.blackcatlab.com:A:SendData: 5 lsub "" "shared.*"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=21 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: 5 OK LSUB completed

3428[37683c0]: 3751c00:mail.blackcatlab.com:A:SendData: 6 list "" "INBOX"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=45 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * LIST (\Unmarked \HasChildren) "." "INBOX"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=21 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: 6 OK LIST completed

3428[37683c0]: 3751c00:mail.blackcatlab.com:A:SendData: 7 select "INBOX"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=60 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=77 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=12 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * 4 EXISTS

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=12 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * 0 RECENT

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=34 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * OK [UIDVALIDITY 1175834781] Ok

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=32 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: * OK [MYRIGHTS "acdilrsw"] ACL

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=22 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:A:CreateNewLineFromSocket: 7 OK [READ-WRITE] Ok

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 8 myrights "INBOX"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=31 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * MYRIGHTS "INBOX" "acdilrsw"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=26 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 8 OK MYRIGHTS completed.

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 9 getacl "INBOX"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=34 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * ACL "INBOX" "owner" "acdilrsw"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=24 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 9 OK GETACL completed.

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 10 getquotaroot "INBOX"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=28 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * QUOTAROOT "INBOX" "ROOT"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=33 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * QUOTA "ROOT" (STORAGE 9 9766)

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=24 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 10 OK GETQUOTAROOT Ok.

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 11 UID fetch 1:* (FLAGS)

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=33 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * 1 FETCH (UID 1 FLAGS (\Seen))

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=33 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * 2 FETCH (UID 2 FLAGS (\Seen))

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=33 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * 3 FETCH (UID 3 FLAGS (\Seen))

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=33 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * 4 FETCH (UID 4 FLAGS (\Seen))

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=24 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 11 OK FETCH completed.

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 12 IDLE

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=22 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: + entering idle mode

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: DONE

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=22 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 12 OK IDLE completed

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:ProcessCurrentURL: entering
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:ProcessCurrentURL:imap://test%40blackcatlab%2Ecom@mail.blackcatlab.com:143/create%3E.INBOX.%26MEp35TCJMFs-:  = currentUrl
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 13 create "INBOX.&MEp35TCJMFs-"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=38 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 13 OK "INBOX.&MEp35TCJMFs-" created.

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 14 subscribe "INBOX.&MEp35TCJMFs-"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=26 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 14 OK Folder subscribed.

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 15 list "" "INBOX.&MEp35TCJMFs-"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=51 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: * LIST (\HasNoChildren) "." "INBOX.&MEp35TCJMFs-"

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=22 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 15 OK LIST completed

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 16 IDLE

3428[37683c0]: ReadNextLine [stream=359e0c8 nb=22 needmore=0]
3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: + entering idle mode

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: DONE

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 17 close

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 18 logout

3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:TellThreadToDie: close socket connection
3428[37683c0]: ImapThreadMainLoop leaving [this=3751c00]

--- log end ---
(In reply to comment #5)
> It is generated in the following cases. 
>   1.Create folder
>   2.Rename folder
>   3.Moving folder

Question again. Garbled at where? At folder pane?
If yes, display of "&MEp35TCJMFs-" as folder name at folder pane?
Have you read thru Bug 450754? Have you checked with Tb latest-trunk?

Anyway, provide IMAP log when *problem occurred* with Tb latest-trunk and screen shot of the garbage, and explain your operations you did when *problem occurred*, please. You can test nightly latest-trunk by UNZIP only if you download win32.zip build.
(In reply to comment #6)

> occurred*, please. You can test nightly latest-trunk by UNZIP only if you
> download win32.zip build.

Nigthlies can be found at http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-trunk/
It seems that the folder name of the folder pane is garbled.

The screen shot createing the folder and after it had made it was appended. 
There is no garble when the folder is made. (id=376217)
After the folder had been made, the garble was able to be seen. (id=376218)
This problem might be the same as that of Bug 450754. 

When reporting on the problem at first, it was possible at creating, renaming, moving or deleting.
However, when newly making it, the problem was not able to be reproduced now.
Because it was possible to reproduce it in the method of the deletion and the movement, the log of the deletion is appended. (id=376222)
Specific in the problem generation part is rough because it cannot understand the meaning of the log.
Attachment #376222 - Attachment mime type: application/octet-stream → text/plain
Your server uses NAMESAPCE.
> 2 namespace
> * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
> 2 OK NAMESPACE completed.
So "folder creation" invoked 13 create "INBOX.&MEp35TCJMFs-".
Patch for Bug 450754 is solution for problem of "garbage before initial login".
Patch for 450754 possibly doesn't support "namespace is used & create/rename/move of folder" case.

Another consern:
Some of log data doesn't contain <CRLF>==0x0D0A/<LF>=0x0A/<CR]>=0x0D. It may be cause of Tb's mis-behavior.

(Example, <CRLF> is 0x0D0A in log data)
> 3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 13 create "INBOX.&MEp35TCJMFs-"3428[37683c0]: ReadNextLine [stream=359e0c8 nb=38 needmore=0]<CRLF>
> 3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 13 OK "INBOX.&MEp35TCJMFs-" created.3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 14 subscribe "INBOX.&MEp35TCJMFs-"3428[37683c0]: ReadNextLine [stream=359e0c8 nb=26 needmore=0]<CRLF>
> 3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:CreateNewLineFromSocket: 14 OK Folder subscribed.3428[37683c0]: 3751c00:mail.blackcatlab.com:S-INBOX:SendData: 15 list "" "INBOX.&MEp35TCJMFs-"3428[37683c0]: ReadNextLine [stream=359e0c8 nb=51 needmore=0]<CRLF>
Component: General → Folder and Message Lists
QA Contact: general → folders-message-lists
Version: unspecified → 3.0
blackcat, do you see this problem in version 3.1?
Whiteboard: [closeme 2011-06-01]
RESOLVED INCOMPLETE due to lack of response to previous question. If you feel this change was made in error, please respond to this bug with your reasons why.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: