Thunderbird Inbox Missing Emails? Rebuild the .msf Index

If Thunderbird's Inbox looks empty, shows incorrect message counts, or displays messages that will not open, rebuild its folder index first: right-click Inbox, select Properties, then choose Repair Folder. If that fails, close Thunderbird, back up your profile, and rename only the matching Inbox.msf file so Thunderbird can recreate it on restart.

The .msf file is a folder index, not a backup of the actual messages. An index rebuild can correct a mismatched folder listing, but it cannot restore email that is missing from both the underlying mailbox and the mail server.

Choose the repair method that fits the symptoms

There are two practical ways to rebuild an individual Inbox index. Both target the same type of file, but they differ in how much you need to handle the Thunderbird profile yourself.

MethodWhen to use itTradeoff
Properties → Repair FolderInbox opens, but its message list or counts look wrongFastest, no file-manager work; may expose that some messages are not present in the underlying mailbox
Rename Inbox.msf with Thunderbird closedRepair Folder does not help, is inaccessible, or the index is recreated incorrectlyMore control and reversible if renamed; requires identifying the correct profile and account directory
Rebuild global-messages-db.sqliteGlobal search is broken while folder contents remain correctRepairs a different index; usually not the answer to a corrupted Inbox.msf

Mozilla support confirms the built-in folder repair path and explains that Thunderbird regenerates the index when necessary: Thunderbird Inbox corruption support response. Start with the first method unless you already know that the folder's on-disk index needs manual replacement.

Option 1: Use Repair Folder inside Thunderbird

  1. Confirm the symptom. Select the correct Inbox under the affected email account. Check that you are not looking at a filtered view, a different Inbox, or a search result. An unexpected display alone does not prove the index is damaged.
Thunderbird folder pane with Local Folders Inbox selected and one message shown in the message list
An Inbox that appears to contain very few messages can indicate a stale folder view, but does not by itself establish index corruption.
  1. Open folder settings. In the folder pane, right-click the Inbox that is giving you trouble and choose Properties. Do not select Compact as a substitute for repairing an index.
Thunderbird Inbox context menu with Properties highlighted for folder-level settings
Right-click the affected Inbox and open Properties rather than using Compact, which performs a different operation.
  1. Rebuild the index. On the General tab, click Repair Folder. Let Thunderbird finish processing, then reselect Inbox. The display may take time to refresh in a large mailbox.
Inbox Properties dialog with the Repair Folder button selected on the General tab
Choose Repair Folder on the Inbox Properties dialog to rebuild the selected folder index.
  1. Check a representative sample. Open a recent message, an older message, and any message that previously appeared duplicated or stuck. Compare the result with webmail if this is an IMAP account.
Thunderbird Inbox view listing multiple messages after a folder index refresh
After the rebuild, compare the displayed messages with mail you expect to find, including older dates.

This is the least invasive choice because you do not manually modify profile files. However, if the current index was showing entries for messages no longer stored in the mailbox, the rebuilt list may contain fewer emails. That is a reason to investigate the mailbox or server, not to keep rebuilding the index.

Option 2: Rename Inbox.msf after backing up

Use this fallback only if the built-in repair does not correct the Inbox view. First create a full profile backup, particularly for POP accounts or Local Folders where the only remaining message copy may be local. Mozilla's profile export instructions describe the built-in ZIP export and recommend a manual file-manager backup for profiles over 2 GB.

  1. Find the active profile. In Thunderbird, open ≡ → Help → Troubleshooting Information. Under Application Basics, use Open Folder beside Profile Folder. Keep that file-manager window open, then fully quit Thunderbird before modifying anything. The exact menu layout may vary by operating system or release.
Thunderbird Troubleshooting Information page with Open Folder next to Profile Folder
The Troubleshooting Information page provides an Open Folder control for the active Thunderbird profile.
  1. Find the affected account's storage directory. In the profile, inspect ImapMail for a typical IMAP account or Mail for a typical POP account; Mail/Local Folders holds Local Folders. Account directory names may resemble server hostnames and can have numeric suffixes. Match the account carefully rather than changing the first file named Inbox.msf that you find.
Windows File Explorer showing the separate Inbox mailbox file and Inbox.msf index file
The extensionless Inbox mailbox file and the Inbox.msf index have different roles; change only the index file.
  1. Rename only the index. With Thunderbird closed and your backup complete, change Inbox.msf to Inbox.msf.old in the correct directory. This makes the old index unavailable while preserving it as a reversible copy. Do not rename, delete, or replace the extensionless Inbox file in an mbox-based folder: that file can contain the messages themselves. Do not delete other .msf files indiscriminately.
File Explorer context menu showing Rename and Delete options for a selected file
With Thunderbird fully closed, use Rename on Inbox.msf to keep a reversible copy instead of deleting it.
  1. Restart Thunderbird. Open the same account and select Inbox. Thunderbird should rebuild the missing index from its available folder data; with IMAP, message visibility also depends on the server's contents and synchronization. Allow the folder to load before deciding whether the attempt worked.
Thunderbird Inbox folder showing a message count and visible message rows after restarting
Reopen Thunderbird and inspect the Inbox as the index is recreated; the displayed count alone is not proof that every email was recovered.

The exact on-disk layout can vary with storage format and account settings. If you cannot clearly identify the correct file, stop rather than guessing. Mozilla's profile-location documentation explains how to confirm the active profile and warns against simultaneous profile access from multiple computers or cloud-synced instances.

What an .msf rebuild cannot repair

For traditional mbox folders, the extensionless Inbox file stores mail content while Inbox.msf stores index information. Mozilla support distinguishes these files in its discussion of missing mail after deleting an index. Rebuilding .msf does not retrieve a message removed from the message store or deleted from the server.

If messages are absent after both methods, do not compact the folder or repeatedly modify the profile until you have checked backups and, for IMAP, your provider's webmail. Compaction can permanently remove messages already marked deleted in local storage, and Mozilla documents circumstances where interruptions during compaction cause display failures or actual data loss: compacting folders and potential complications.

If the folder itself looks correct but Thunderbird's global search is blank or incomplete, that is a different problem. Mozilla documents rebuilding global-messages-db.sqlite for search indexing, not as the standard fix for an Inbox folder's .msf: Rebuilding the Global Database. Avoid changing that database unless the search symptoms justify it.

Verify the repair

After restarting Thunderbird, return to the affected Inbox, reopen several known messages from different dates, and confirm that new mail arrives or syncs normally. For IMAP, compare the relevant messages with the server's webmail view; for POP or Local Folders, confirm that your local backup still contains the expected mailbox files. Recheck after one additional Thunderbird restart. If the list remains wrong or messages are missing at the source, preserve the backup and investigate the actual mailbox or server rather than treating another index rebuild as data recovery.

Leave a Comment

PC Tips