Closed Bug 2011092 Opened 9 months ago Closed 2 months ago

virtualFolder.dat / search Folders are emptied on thunderbird start, when local folders are not connected

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 147
defect

Tracking

(thunderbird_esr140 unaffected, thunderbird147 affected)

VERIFIED INCOMPLETE
Tracking Status
thunderbird_esr140 --- unaffected
thunderbird147 --- affected

People

(Reporter: rally-123, Unassigned)

References

Details

(Keywords: regression, regressionwindow-wanted)

Steps to reproduce:

I have start Thunderbird Version v 146.x actual V147.0 (64Bit) on Windows 11 Prof, earlier versions Thunderbird have not this bug.
At this moment, the local folders are exceptionally not yet connected, e.g., due to a network problem.

Actual results:

After start, the search folders are lost.
If i search the file virtualFolders.dat in Profiles the file was emptied, the search folders are lost in the folder view of thunderbird.

If a have a backup of virtualFolders.dat i can copy this to repair.

Other users have the same problem.

Expected results:

Thunderbird should not emptied virtualFolders.dat on start without connected local folders.

Summary: virtualFolder.dat / search Folders are emptied on thunderbird start, when local are not connected → virtualFolder.dat / search Folders are emptied on thunderbird start, when local folders are not connected

So local folders are mapped to an external drive not yet connected?

I don't immediately see where it would be a problem, if it's still in the list of incoming servers.
https://searchfox.org/comm-central/rev/2d1b2333dd18d9c50ae4357b3218ce624637206c/mailnews/base/src/nsMsgAccountManager.cpp#2925

(In reply to Magnus Melin [:mkmelin] from comment #2)

So local folders are mapped to an external drive not yet connected?

=> Thunderbird is operated locally. The virtualFolders.dat file is located under C: in the user profile. The “local folders” are in a VeraCrypt .hc file. If you forget to open this VeraCrypt file, which should correspond to an unavailable network connection to the Thunderbird folders, and then start Thunderbird, the virtualFolders.dat file will appear to be empty. If you reconnect the .hc file the next time, the local folders will of course be available again, but the search folders will be missing because they are visually displayed in Thunderbird under “Local Folders” but are actually located in virtualFolders.dat. Why not place your own search folders where the local folders are located?

I don't immediately see where it would be a problem, if it's still in the list of incoming servers.

=> Thunderbird is operated locally, so there are no “incoming servers” with local folders.

rally-123, can you find the regression range using nightly builds with https://mozilla.github.io/mozregression/ ?

Flags: needinfo?(rally-123)
See Also: → 2036592

rally-123: do you still see this with v151 or later?

Whiteboard: [closeme 2026-06-15]

Resolved per whiteboard

Status: UNCONFIRMED → RESOLVED
Closed: 2 months ago
Flags: needinfo?(rally-123)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2026-06-15]

Hi guys,

Since I reported this to you, the bug is still the same—in other words, it hasn't been fixed. Even the latest version, V158.0.1, still exhibits the same bug, and it's not just happening to me.

Could a developer please take a look at this bug? It's very easy to reproduce, as described in the report.

Kind regards

Status: RESOLVED → VERIFIED

@Magnus and friends

Yes, local folders are mapped to an external drive not yet connected. But we talk about the „virtual folders“ in the local folders, an the state after start with not connected external drive.

Please reread my bug report:
„After (re)start, the search folders are lost.
If i search the file virtualFolders.dat in Profiles the file was emptied, the search folders are lost in the folder view of thunderbird.“

Clearing the virtualFolders.dat file in the “Profiles” folder is a bug; doing so results in the permanent loss of the virtual folders (search folders). Please reproduce the bug and investigate what causes the file to be cleared in newer versions, and ensure that the virtualFolders.dat file remains unchanged—even if the external drive is not connected when Thunderbird starts—and is not cleared. The virtual folder is also no longer displayed, if that is what is meant by “List of Received Servers.”

Kind regards

You need to log in before you can comment on or make changes to this bug.