What is the MSF file format?
.msf files are used by email client applications such as Mozilla Thunderbird and SeaMonkey. The file does not store the email message body - it holds only the sent or received message index, i.e. the message header and a summary of the contents, encoded internally in the Mork plain-text database format developed originally by Netscape.
How does the MSF format work?
An .msf index file is created alongside a second file - the MBOX mailbox - which serves a different purpose. Each email folder (Inbox, Sent, Drafts, etc.) stores content in two types of files:
- The MBOX file - stored without a file extension - holds the actual email messages.
- The
.msffile - stored with the.msfextension - holds the index and cache for that folder.
For example, a folder named INBOX is paired with INBOX.msf. Every .msf file begins with the Mork magic comment line // <!-- <mdb:mork:z v="1.4"/> -->, making it technically plain text, though the Mork dictionary/row syntax is cryptic and not intended for manual editing.
The idea behind MSF files
.msf files are generated automatically by Thunderbird to speed up folder loading. Instead of scanning the full MBOX mailbox on every launch, the client reads the lightweight summary. The index caches per-message metadata - subject, sender, date, read/unread flag, and byte offsets that locate each message within the accompanying MBOX file. If an .msf file is deleted or becomes corrupt, Thunderbird rebuilds it automatically by re-scanning the folder - making deletion of a stale .msf a common troubleshooting step when a folder displays incorrect message counts or missing messages.
Security & safety
RISK: LOWA .msf is a harmless local index with no message content and no executable code. The only real risk is operator error: when deleting an .msf to force a rebuild, delete ONLY the file ending in .msf and never the matching extension-less file of the same name - that one holds your actual emails. Always close Thunderbird first, and back up the profile before mass-deleting indexes.
Format details
in a nutshell- Metasploit resource script (.msf/.rc) - A plain-text batch of console commands for the Metasploit penetration-testing framework.
Programs that open MSF files
Technical details
deep spec| Format type | Plain-text Mork database used as a folder index and message cache - stores metadata only, not message content |
| Underlying syntax | Mork v1.4 - a cryptic dictionary/row encoding originally developed by Netscape and inherited by Mozilla |
| File header (magic bytes) | Every file begins with the ASCII line: // <!-- <mdb:mork:z v="1.4"/> --> |
| Paired companion file | Each .msf corresponds to an extension-less MBOX file with the same base name (e.g. INBOX paired with INBOX.msf) |
| Cached metadata fields | Subject, sender, recipient, date, read/unread/flagged status, message size, and byte offset within the MBOX file |
| Text encoding | UTF-8 plain text with Mork-specific escape sequences and an internal character-table compression scheme |
| MIME type | application/octet-stream - no dedicated MIME type is registered for .msf |
| Typical file size | Much smaller than the companion MBOX - size scales with message count, not message body size |
| Auto-rebuild behavior | Thunderbird detects a missing or corrupted .msf and regenerates it by re-indexing the companion MBOX on next folder access |
| Storage location on disk | Inside the Thunderbird profile directory under Mail/ (local accounts) or ImapMail/ (IMAP), alongside extension-less MBOX files |
| Folder types covered | Inbox, Sent, Drafts, Trash, Junk, and all user-created local or IMAP-cached folders |
| Developer and origin | Mozilla Foundation (Thunderbird, SeaMonkey); Mork format originally created at Netscape Communications |
| Supported applications | Mozilla Thunderbird (Windows, macOS, Linux), SeaMonkey; any text editor can open the file for inspection |
| Troubleshooting use | Deleting a corrupt .msf forces Thunderbird to rebuild the index - standard fix for incorrect folder message counts or display glitches |
| Released | Mozilla mail (Netscape-derived) early 2000s; used by Thunderbird since 2003 |
| Specification | wiki.mozilla.org |
MSF conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about MSF files.