Closed Bug 225364 Opened 22 years ago Closed 16 years ago

~/mail/* & ~/news/* files remain open when their use has ceased

Categories

(MailNews Core :: Database, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: mrmazda, Assigned: Bienvenu)

Details

Seamonkey 1.5 on W98; 2003111008 trunk on OS/2 To reproduce: 1-Open browser 2-Open mailnews 3-Read and reply to some news 4-Read and/or compose and send some email 5-Close mailnews 6-Try to delete or backup or restore mailnews files Actual behavior: 1-Can't delete the files 2-Backup utility complains when it tries to reset archive bits 3-Timestamps on recently "changed" files are old Expected behavior: 1-Files can be deleted 2-Backup/restore utility generates no error messages 3-Timestamps on recently used files are current as of mailnews shutdown 4-When one switches from reading one newsgroup to reading another newsgroup, the previous group's .msf file is immediately written to disk, as well as the server .rc and .msf files updated to disk How many loss on crash bugs are due to all these needlessly open files?
are you talking solely about the .msf files? Or also the mailbox files? There are bugs where some .msf files remain open and some legitimate cases for the .msf files to be open (e.g., if you're looking at the contents of a folder, we need to keep the .msf file open).
How are you looking at the contents of a mailnews folder that requires access to .msf in which mailnews is not open? .msf file has bug 114211 and .rc has bug 90991 that would be fixed by fixing this. This amounts to a dupe of both, but I didn't find a separate one for .dat or the extensionless (mailbox) files. So, this bug is about the bigger scope the summary indicates. The reason I filed this is: *****We closed mailnews, so we shouldn't hold ANY files open in the indicated directories, regardless of name or extension.***** None of us should have to close Mozilla entirely just to backup the mail directories. I often keep Moz open days at a time. I shouldn't have to keep my data unprotected for so long. I backup data on archive bit status, so the files need to be available to the archiver for resetting the bit. Plus, fixing this would improve mailnews dataloss issues from crashes in the browser while mailnews isn't open, but had been, if for no other reason than to start biff.
the data is actually flushed to disk, so no dataloss should result. The .msf files are regenerated anyway, if they're out of sync. I know of no cases where the "extensionless" files, i.e., the mailbox files are left open. I do know of some cases where the .msf files are left open, mainly because of pop3 mail filters. But if you have reproducible steps, and a list of files that are left open, that would be a good start.
Product: MailNews → Core
QA Contact: esther → database
Product: Core → MailNews Core
lsof seems to confirm comment 3 for me.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.