Open
Bug 416888
Opened 17 years ago
Updated 2 years ago
Unexepected creation of a folder with the same name, when hashing of mail folder file name is executed twice by special character in mail folder name and by internal folder file name length limit
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: gdm2, Unassigned)
References
(Blocks 1 open bug)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12
Build Identifier: version 2.0.0.9 (20071031)
I do not know the reason why, sometimes, a new unexpected subfolder is created with the same name than another folder. So both folders have exactly the same name. One of the folder contains the mails. the other folder, is empty. After somes, days, all the mails have disappeared.
The first tme it happened was in june 2007. Since june 2007, I tried to detect the exact cause of that bug. But i did not succeed to find any clue to this strange behaviour of thunderbird.
About once a week, this strange phenomena happens. A new folder was created without any cause.
In june 2007, I made the mistake to create a folder by copy-paste of a some special caracters. My problems began exactly that day when i did that mistake.
frequently, I move a subfoder to another place. Perhaps, that could be as well a cause of my problems.
It was difficult to delete theses folder. when I suceeded to delete one folder, it was created again automaticaly. sometimes, the folder was created again with some caracters at the end of the name.
I "rebuild" often the folders I use. "rebuild" folders seem to have no effect on my problem.
Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
Actual Results:
unexepted creation of a folder with the same name than the first folder.
Comment 1•17 years ago
|
||
What path is displayed by "Copy Folder Location"?
(1-1) notepad.exe
(1-2) "Copy Folder Locaion" at context menu of a folder, and paste to notepad
(1-3) "Copy Folder Locaion" of folder with same name, and paste to notepad
What directories/files are created under Mail directory?
(2-1) MD C:\WORK
(2-2) CD %APPDATA%\Thunderbird\Profiles\<prof_dir_name>\Mail
(2-3) DIR *.* /S > C:\WORK\DIR-LIST.TXT
(2-4) notepad.exe C:\WORK\DIR-LIST.TXT
When(which version) did you start to use Tb?
Do you use localized version of Tb?
Thanks to work on my bug on thunderbird.
This morning, I cleaned five unexpected duplicate folders. I have no longer any duplicate folders in thunderbird.
I did the the actions that you asked me to do. I got the DIR-LIST.TXT. This file contains many confidential names. impossible to publish it.
Which parts of this file DIR-LIST.TXT could interest you?
I hope some unexpected folders will come back soon. So I will send to you more interesting informations.
Comment 3•17 years ago
|
||
(In reply to comment #2)
> Which parts of this file DIR-LIST.TXT could interest you?
File name(s) used for folder.
And, if folder name contains special character, when(by which version of Tb) the folder was created initially.
If standard mail folder such as Inbox(when not-localized), file name used for it is English name of Inbox or localized name of Inbox.
See Bug 396149.
Yesterday, I got a new unexpected creation of subfolder with the same name. I did the command wada asked me. I got the following :
R‚pertoire de C:\Documents and Settings\gdm\Application Data\Thunderbird\Profiles\8jahw9h7.default\Mail\Local Folders\ebay.sbd\achat02.sbd\objets gagnes payes04.sbd
10/03/2008 11:43 <REP> .
10/03/2008 11:43 <REP> ..
09/03/2008 20:42 0 250222951165 Toner CANON Cartridge T pour PC-D300 821409c9
09/03/2008 20:42 24ÿ804 250222951165 Toner CANON Cartridge T pour PC-D3c5324786
11/03/2008 06:14 3ÿ653 250222951165 Toner CANON Cartridge T pour PC-D3c5324786.msf
3 fichier(s) 28ÿ457 octets
I use the lastest thunderbird. french version. I always use the latest version of thunderdird. Theses subfolders had been created on 2008-02-11 or after.
I often create new sub-subfolders into this subfolder. Then I move that sub-subfolder into another subfolder. ( I buy things on ebay. each thing is a subfolder. when i have paid it, i move it to another subfolder. when received, i move it to another subfolder).I suppose that frequent moves are a indirect reason why I got duplicate subfolders.
I never rename the subfolders. I only move them from a subfolder to another subfolder. I wonder if the duplicate subfolder would have been created when I close thunderbird. But I am not sure to remember the very precise circumstances.
Summary: unexepted creation of a folder with the same name → unexepected creation of a folder with the same name
Comment 5•17 years ago
|
||
What is exact mail folder name? (what special character is used in the mail folder name)?
(I can check it if you attach following file to this bug)
> 250222951165 ... PC-D3c5324786.msf
When new subfolder of same name is created by your Tb 2, what files will be created?
> 1. Create a (sub)folder (say Test)
> 2. Create a subfolder named "250222951165 Toner CANON Cartridge T pour
PC-D3..." under Test
Looks to be dup of Bug 396149.
(Following looks to be filename used by former Tb)
> 250222951165 ... PC-D3c5324786
(Following looks to be filename used by Tb 2)
> 250222951165 ... PC-D300 821409c9
Execute workaround explained in Bug 396149 Comment #10.
the exact subfolder name is :
250222951165 Toner CANON Cartridge T pour PC-D300 / FAX-L400
no special caracters in the name of that subfolder.
I had created that subfolder on the 9th march 2008 or later.
Since I have seen duplicate folder, I run "rebuild of the folder". Perhaps, I should not have rebuild it.
My own woraround is to create a new subfolder with a different name. then i move all the messages from the spoiled subfolder to the new subfolder. the i delete the spoiled subfolder.
Comment 7•17 years ago
|
||
(In reply to comment #6)
> the exact subfolder name is :
> 250222951165 Toner CANON Cartridge T pour PC-D300 / FAX-L400
> no special caracters in the name of that subfolder.
"/" is the special character. On MS Win & Linux, "/" is not usable as a file name character. Sorry but I don't know Mac OS X case.
See Bug 275770, and See dependency tree for meta Bug 124287(with "Show Resolved").
You have probably discovered the reason of my problem. Thanks very much. Does Mozilla plan to manage properly such special caracters in subfolder names?
Comment 9•17 years ago
|
||
(In reply to comment #7)
> no special caracters in the name of that subfolder.
"/" is the special character.
"/" is not usable as file name character at least on MS Win & Linux.
> the exact subfolder name is :
> 250222951165 Toner CANON Cartridge T pour PC-D300 / FAX-L400
Oh, your problem was not DUP of Bug 396149.
Your problem looks to be different(new) problem, although Bug 396149 maybe has relation to your problem.
When I created subfolder named "250222951165 Toner CANON Cartridge T pour PC-D300 / FAX-L400", Tb 2.0.0.12(on MS Win-XP) created following 3 files.
(size is file size after copy of a small mail to the folder)
> (1) 250222951165 Toner CANON Cartridge T pour PC-D3c5324786 (2KB)
> (2) 250222951165 Toner CANON Cartridge T pour PC-D3c5324786.msf (3KB)
> (3) 250222951165 Toner CANON Cartridge T pour PC-D300 821409c9 (0KB)
Files of (1) & (2) looks to be required set of files for the mail folder.
File of (3) seems to be garbage due to incomplete/wrong implementation change by Tb 2.0.0.x in special character handling.
Will duplicated mail folder disappear after following actions?
1. Delete (3) "... PC-D300 821409c9" (file o size==0) & restart of Tb
2. Put some mails in the folder
3. Shutdown Tb & restart Tb
Blocks: folders-with-special-characters
Reporter | ||
Comment 10•17 years ago
|
||
The two subfolders are perfectly identical. Both subfolders contain exactly only one e-mail. And they contain the same e-mail, with the same date, with the same text. So i can not choose which subfolder to delete.
Comment 11•17 years ago
|
||
Situation was worse than I expected...
Following is content in (2) "... PC-D3c5324786.msf" just after folder creation.
<(81=4)(82=250222951165 Toner CANON Cartridge T pour PC-D300 821409c9)
(96=47d660ab)(85
=250222951165 Toner CANON Cartridge T pour PC-D300 / FAX-L400)(8B
=1205231787)(87=12)(8A=Tue Mar 11 19:36:09 2008)>
Just after creation, "copy folder location" says path is "... PC-D3c5324786".
This indicates "... PC-D3c5324786" & "... PC-D3c5324786.msf" is used.
However, when restart, following will perhaps occur.
1. Detect "... PC-D3c5324786", then access to "... PC-D3c5324786.msf",
and knows folder name is "250222951165 ... PC-D300 / FAX-L400".
2. According to content of "... PC-D3c5324786.msf",
access to "... PC-D300 821409c9". (.msf file points "... PC-D300 821409c9")
3. Detect "... PC-D300 821409c9".
It will perhaps search "... PC-D300 821409c9.msf", and it is not found.
And consider it as mail folder of "... PC-D300 821409c9",
then create "... PC-D300 821409c9.msf".
Similar situation to above can be seen by next test.
1. Create (sub)folder(say "Test")
2. Create subfolder named "A"' under "Test"
3. Rename "A" to "250222951165 Toner CANON Cartridge T pour PC-D300 / FAX-L400"
=> Following 4 files are created.
"... PC-D3c5324786"
"... PC-D3c5324786.msf"
"... PC-D300 821409c9"
"... PC-D300 821409c9.msf"
Please execute test after keep back up of profile directory(at least after back up of mail directory).
Comment 12•17 years ago
|
||
Seems that folder name length has relation to the problem.
> Note: 'pour' is removed from your original folder name.
>(A. No problem when rename to next.)
> a 250222951165 Toner CANON Cartridge T PC-D300 / FAX-L400
>(B. Four files were created when 'b' is added to new folder name of rename,)
>( as I wrote in comment #11. ) )
> ab 250222951165 Toner CANON Cartridge T PC-D300 / FAX-L400
Reporter | ||
Comment 13•17 years ago
|
||
I have created aaatest on Local Folders
Then I did exactly as you asked to me to do.
I created a subfolder named A.
Then I renamed the subfolder A into "250222951165 Toner CANON Cartridge T PC-D300 / FAX-L400"
I got only one subfolder "cartrigdge"
i closed Thunderbird
I open thunderbird
there were two subfolders "cartridge"
On my file "DIR-LIST.TXT", i got what is after: i did not see any cartrigde folder. that seems strange to me.
11/03/2008 18:02 0 aaatest
11/03/2008 18:04 1ÿ724 aaatest.msf
11/03/2008 18:04 <REP> aaatest.sbd
Comment 14•17 years ago
|
||
(In reply to comment #13)
> i did not see any cartrigde folder.
> 11/03/2008 18:04 <REP> aaatest.sbd
Files/directory for mail folder named "... cartrige ..." under "aaatest" are held in directory named "aaatest.sbd". Execute "DIR /?" for siwitches of DIR command.
Comment 15•17 years ago
|
||
could this be related to what I just got in Tb3.0a1 rc as in the bug 312265 c5 ? with those xx// names.
(Or same in bug 358208 that is related imo)
Comment 16•17 years ago
|
||
Confirming based on my test result in Comment #11.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 17•16 years ago
|
||
I have a similar issue.
I created a subfolder under junk in the local folders with a very long name ad a filter to find files with that text and gather them together.
Later, I deleted all the subfolders under junk in local folders.
Periodically, the subfolder with the long name re-appears twice with some additional characters on the end of the name. I can move one of the subfolders to trash by deleting it. The second won't delete, giving a duplicate name error. If I empty the trash, the second still will not delete, but this time there is no error.
I have tried a restart, without success.
If I may speculate, the software appears to be picking up a deleted entry which has a name longer than it can cope with. The name appears to be 60 characters followed by 5f550286. Perhaps these last are hex representations?
Here is the folder name copied from the properties window
Hey I got your email and sorry it took me this long to reply5f550286
12345678901234567890123456789012345678901234567890123456789012345678 Count line for convenience
I have tried a rename, but this does not work.
Comment 18•16 years ago
|
||
(In reply to comment #17)
> Hey I got your email and sorry it took me this long to reply5f550286
What is exact mail folder name(string after "long to reply")?
Special character, for example, "/", "#", "?", ending "." or "~", trailing spaces, is involved, isn't it.
I couldn't observe "duplicate folder" problem nor "won't delete" problem when I changed "/" to "@", although hashing at end of file name was observed.
My guess about test result in my Comment #11.
(1) "... PC-D300 / FAX-L400" => "... PC-D300 821409c9" : Hashing due to "/"
(2) "... PC-D300 821409c9" => "... PC-D3c5324786" : Hashing due to length
If (1) only or (2) only, no problem. This bug occurs when (1) then (2).
Comment 19•16 years ago
|
||
The original file name was the 60 characters from hey to reply. I have no idea where the extra 8 came from. I could speculate but won't.
I had a look at the properties for local folders and found the full pathname then followed it through windows "my computer" until I found a selection of subfolders that had not been deleted. They now sit in my recycle bin and have not reappeared. Could this be a workaround?
I will speculate now that the subfolders were recreated because a) they did not actually delete and b) tbird looks for them instead of relying on an index.
I will be back if the subfolders return.
Comment 20•16 years ago
|
||
(In reply to comment #19)
I'm talking about original "mail folder name"(not "file name") which caused "dup mail folder" problem, and "won't delete" problem, and the hashed part at end of file name.
Enter "Rename Folder" via context menu of the mail folder, and CTRL+A, CTRL+C, cancel rename, then CTRL+V at text editor or <TEXTAREA> in a HTML page.
Updated•16 years ago
|
Summary: unexepected creation of a folder with the same name → Unexepected creation of a folder with the same name, when hashing of mail folder file name is executed twice by special character in mail folder name and by internal folder file name length limit
Comment 21•16 years ago
|
||
I too have multiple copies (2 actually) of Sent - Local Folders they have nothing inside them. They cannot be deleted they are :-
mailbox:/C|/Documents and Settings/Administrator.MILK-VC9NP5TR94/Application Data/Thunderbird/Profiles/vosxyxrw.default/Mail/Local Folders/mailbox10b5ef27
This morning I created two additional folders an this one was created.
mailbox:/C|/Documents and Settings/Administrator.MILK-VC9NP5TR94/Application Data/Thunderbird/Profiles/vosxyxrw.default/Mail/Local Folders/mailbox10b5ef27.sbd/Sent
I am using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Any instructions??
Comment 22•16 years ago
|
||
(In reply to comment #21)
> They cannot be deleted they are :-
Bug 66763, isn't it? Even after "Empty Trash"?
Updated•5 years ago
|
Severity: major → normal
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•