Disappearing mail

From MozillaZine Knowledge Base

This article was written for Thunderbird but also applies to the Mozilla Suite (though some menu sequences may differ).

This article describes what to do if some or all of your messages disappear. However, if Thunderbird suddenly ran the new account wizard when you started it see Recovering a profile that suddenly disappeared.

The first thing to do is to try to figure out what the missing messages have in common. For example, is the problem limited to one specific folder or account or just new messages? Did you lose the messages shortly after changing the configuration? Look for anything unusual or that doesn't look right (besides some of your messages being missing) and then use the following checklists.


Common problems

  • Check to make sure that "View -> Messages" and "View -> Threads" are both set to "All".
  • Check for incoming messages that might have been sent with an incorrect date. That can make the message hide anywhere among old messages in the list, due to the sorting. Check that the system date for your computer is correct - if its incorrect that could cause messages to appear out of sequence.
  • It's possible that the ".msf" files (index files) are corrupted. To rebuild the index of a folder, right-click it, select Properties, and choose "Rebuild Index" from the General Information tab. You can also close Thunderbird and manually delete them from your profile folder; they will be rebuilt when Thunderbird starts.
  • Check whether some of the messages in the folder are fragmented or compacting doesn't seem to work. You might also see some of your messages having dates of 1969 (due to a missing a Date: header) or the summary file being rebuilt whenever you open a folder. If this happens your folder is probably corrupt due to not compacting it regularly. Depending upon how corrupt it is it might have just hidden or permanently lost the missing messages. See the second method in Compacting doesn’t seem to work.
  • Try running Thunderbird in safe mode (not to be confused with Windows safe mode) to temporarily disable any added extensions or themes.

Its just doing what you told it to do

  • Could you have deleted the message? Its easiest to recover them if they are still in your trash folder. If you haven't compacted the folder see Undelete a message for several ways to recover deleted messages.
  • Look in the Junk and Trash folders. Depending on how you have the Junk Mail Controls set up, messages can be sent automatically to the Junk folder or Trash.
  • If you have set up message filters, some of your incoming messages might be getting sent to folders other than the Inbox. Check your filter definitions in "Tools -> Message Filters" and choose the problematic account from the top drop-down-list. You can check the log file by pressing "Filter Log"; if logging is disabled you may want to enable it to help if the problem recurs.
  • If you are using the message aging feature, it will permanently delete messages based upon your settings.
  • Did you read any of your messages with a different email client? If so, then whichever one checked for new mail first might have deleted the copy of the new message on the POP3 server, preventing the other email client from finding it when it checked for new mail. You can prevent this by setting the equivalent of Tools -> Account Settings -> Server settings -> "Leave messages on server" in both email clients. If you do that, you might also want to check "for at most X days" so that your mailbox doesn't become full.

Account specific

  • Look in your profile folder and see if you have multiple copies of a account directory. For example, if you have a Gmail account you should find a directory (it's named after the mail server) in the mail directory. If you also find a directory (or some other numeric suffix) your messages for that account might be spread across multiple account directories due to some error. The only time you should see account directories with numeric suffixes is if you created multiple accounts with the same mail server but different user names. Use the browse button at Tools -> Account Settings -> Server Settings -> Local Directory (TBird 2.x has Edit -> Account Settings -> Server Settings -> Local Directory) to browse to your original account directory (Tools/Edit -> Account Settings -> Local Folders -> Local Directory if it's a global inbox) and then press OK. If some of your messages are still missing, import the folders in the other account directory using the ImportExportTools extension. If you're using Firefox to download the extension remember to right click and select "save link as" rather than left clicking, in order to avoid Firefox trying to install the Thunderbird extension.


  • If mail disappeared from the message list immediately after you renamed a mail folder or subfolder, try exiting Thunderbird and restarting. If that doesn't work, exit Thunderbird, go to your profile folder and rename the corresponding mail file and delete the panacea.dat file. [1]
  • Backup your profile using something such as Mozbackup. Use a text editor such as notepad (not a word processor) and open the mbox file for a folder that is missing messages in your profile folder. The mbox file is just a text file with the folders name and no file extension. For example, "inbox.". If you're using Gmail, it would be "Mail\\Inbox." Browse the message source until you find a message that was missing. Look at the X-Mozilla-Status: header for the message. Set it to zero, save the file, exit and start Thunderbird. See if the message re-appears. If it does then do the same for any other missing messages.

See also