Empty folders

From MozillaZine Knowledge Base
Revision as of 07:52, 27 May 2007 by Tanstaafl (talk | contribs) (changed mboximport to importexporttools)
Jump to navigationJump to search
This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ).

A couple of reasons your folders might be empty.

Local directory setting

Something may changed the setting used to specify the location of the mail directory for an account and/or the Local Folders directory. This could occur by accident or if your PC crashed while Thunderbird was running. Thunderbird may be looking in the wrong location for the folders, and possibly creating default folders (inbox, template, drafts etc.) for an account at the new location because it can't find them.

Find where your profile is stored and then locate the appropiate directory. If its a mail directory it will be named after the mail server. For example, if you have a gmail account the mail directory will be stored in a "Mail\pop.gmail.com" subdirectory in your profile. If you're using a global inbox for an account it uses the Local Folders directory ("Mail\Local Folders").

Then goto Tools -> Account Settings -> Server Settings (if its a mail directory) or Tools -> Account Settings -> Local Folders , press the Browse button next to "Local directory:", browse to the correct location, and press the OK button .

Read-Only file setting

None of the mbox files or *.msf files should be read-only. Typically the problem is caused by the .msf file for a parent folder being read-only.

A mbox file is a text file with the folders name and no file extension that contains all of the messages for that folder. For example, your inbox folder is actually the "inbox." mbox file. The *.sbd files are read-only since they are subdirectories used to organize the thunderbird folder hierarchy.

View setting

Check that "View -> Messages" and "View -> Threads" are both set to "All", and that you didn't type something in the edit field next to the magnifying glass icon (a search filter) above the message listing .

Corrupted folders

Its possible the folders appear empty because they're corrupted. This is much more likely if you only have one or two empty folders. Exit Thunderbird, delete the mail summary files (*.msf) for those folders and see if the problem goes away. This is the quick and dirty way to fix a corrupted folder and may not work if the folder is badly corrupted. However, it takes time for corruption to get that bad and it would usually occur first with your inbox.

Move the folders

If some of the child folders within an account are missing try manually moving both the mbox file and the mail summary file (.msf) for those folders to a different subdirectory using Windows Explorer. Sometimes moving folders to a different position in the folder hierarchy works. Try this only if nothing else works, since it doesn't help you figure out how to prevent the problem from occuring again.

Another way to do that would be to import the mbox file using the ImportExportTools extension, selecting a different parent folder. The extension doesn't care whether the folder its importing is visible in Thunderbird.

Absolute paths in prefs.js

Thunderbird used to have just absolute paths to specify the location of the mail folders. Version 1.5 added support for relative paths. If you use it with a older profile it will add relative paths, but will give precedence to the absolute paths. This means it may still be looking in the old location for your folders if you move your profile. This problem doesn't occur if you created the profile using Thunderbird 1.5 or later.

If you move the profile and can still access your address books then the problem isn't due to Thunderbird not being able to find your profile. Use a text editor (not a word processor) to replace all instances of the path to your old profiles location with the new location. For example, if you're using XP you might need to replace all instances of "C:\\Documents and Settings\\WindowsUserAccountName\\Application Data\\Thunderbird\\Profiles\\********.default" (the default profile location) in prefs.js with "D:\\NewLocation\\NewProfile" (the new profile location).

See also