Closed Bug 199823 Opened 21 years ago Closed 21 years ago

Double rename of folder with subfolder removes content of subfolder

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Windows 2000
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 209022

People

(Reporter: bugzilla.20.endlisnis, Assigned: Bienvenu)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312

If you rename a folder that contains a folder that contains messages.  Then you
rename the same folder to another different name, the content of the subfolder
is lost.

Reproducible: Always

Steps to Reproduce:
1. Create a mail folder in Local Folders.  Call it "Temp".
2. Create a folder inside "Temp".  Call it "Sub".
3. Move at least one message to the "Sub" folder.
4. Rename the "Temp" folder to "Temp2".
5. Rename the "Temp2" folder to "Temp3".
6. View the content of "Sub".
Actual Results:  
The messages in "Sub" are now gone.

Expected Results:  
The messages you moved to "Sub" should still be there.
I found the subfolders had disappeared after just one rename. They still appear
on the tree in the left pane, but all the folders are empty. Looking at the
actual files, I find that the main data file and the .msf files have been
renamed but the  Windows subfolder .sbd is still present but is not renamed. The
"lost" data may still be retrievable by manually renaming the .sbd subfolder.

Running Windows 2000 and Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
rv:1.4b) Gecko/20030507
taking
Assignee: sspitzer → bienvenu
Status: UNCONFIRMED → NEW
Ever confirmed: true
Bug still exists in Thunderbird 0.4 on Windows XP. In the following scenario,
Thunderbird fails to rename the directory.

Original mail structure on disk:
Local Folders\
  stored
  stored.msf
  stored.sbd\
    subfolder
    subfolder.msf

mail structure on disk after renaming the folder 'stored' to 'stored2':
Local Folders\
  stored2
  stored2.msf
  stored.sbd\
    subfolder
    subfolder.msf

Since the subfolder is not renamed, the files in the subdirectory are not
recognized. Manually renaming stored.sbd to stored2.sbd fixes the problem.

By the way, the summary should probably be something like "Rename of local mail
folder fails to rename subfolder".
Sorry for the extra spam here. I think this bug is a duplicate of 209022, so I'm
going to copy my post over into that bug.

*** This bug has been marked as a duplicate of 209022 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.