Garbage file/directory of {foldername}-{suffix}.msf and {foldername}-{suffix}.sbd (and {foldername}-{suffix} also, if offline-use=ON) is created upon each unsubscribe / subscribe. For example Inbox-1
Categories
(MailNews Core :: Database, defect)
Tracking
(thunderbird_esr140 wontfix, thunderbird_esr153 affected, thunderbird154 wontfix, thunderbird155 affected)
People
(Reporter: World, Assigned: welpy-cw)
References
Details
Attachments
(1 external file)
| Reporter | ||
Updated•16 years ago
|
Comment 1•16 years ago
|
||
| Reporter | ||
Comment 2•16 years ago
|
||
| Reporter | ||
Comment 3•16 years ago
|
||
| Reporter | ||
Comment 4•16 years ago
|
||
| Reporter | ||
Updated•15 years ago
|
Comment 5•14 years ago
|
||
| Reporter | ||
Comment 7•14 years ago
|
||
Comment 9•12 years ago
|
||
Comment 10•12 years ago
|
||
Updated•4 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 12•3 months ago
|
||
Subscribing to an IMAP folder that isn't on disk yet used to create an
empty summary (.msf) file as a side effect. Building the subscribe URL
reads folder info - the hierarchy delimiter in ChangeFolderSubscription
and modseq/UID state in SetupWithUrl - and those info reads went through
ReadDBFolderInfo()/GetDBFolderInfoAndDB(), which open the summary
database and create it if missing. When discovery later creates the real
summary file, the premature empty one is renamed with a "-1" suffix
(leaving a NotOnDisk-1.msf duplicate behind) or ends up orphaned.
The hierarchy delimiter is a folder-cache property (hierDelim), not a
database property, so GetHierarchyDelimiter() doesn't need the database
at all. Add a cacheOnly mode to ReadDBFolderInfo() that only reads the
folder cache and never opens or creates a summary file, and use it in
GetHierarchyDelimiter(). SetupWithUrl() only needs to peek at existing
database state, so switch it to OpenFolderDB() instead of
GetDBFolderInfoAndDB().
Add a regression test that subscribes to a folder that isn't on disk yet
and verifies that discovery creates exactly one summary file for it,
without a "-1" duplicate left behind.
Updated•3 months ago
|
| Assignee | ||
Updated•3 months ago
|
Comment 13•3 months ago
|
||
Pushed by benc@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/f582b42e83e5
Don't leave a duplicate summary file behind when subscribing to an IMAP folder. r=mkmelin
Comment 14•3 months ago
|
||
Confirming this issue as verified fixed on Windows 11, macOS 26 and Ubuntu 26 using the latest Daily build 20260817095217
Description
•