Thunderbird tells you your mailbox is full, yet you have deleted hundreds of emails and the warning will not go away. Or you try to compact folders and get a message that compacting cannot finish. This is one of the most misunderstood parts of how Thunderbird stores mail.
Deleting in Thunderbird does not immediately free space, especially with local folders and POP accounts. Compacting is the step that actually reclaims the space — but it needs to be done correctly, and safely, so you do not lose messages you wanted to keep.
Quick Answer
To compact folders in Thunderbird when your mailbox says it is full, first empty Trash and Junk, then right-click each large folder and choose Compact, or use File, Compact Folders to do all folders at once. For IMAP accounts, also check your server quota in webmail, because compacting local folders does not increase server space — you must delete and expunge messages on the server too. Do not interrupt compacting once it starts, and back up your profile if a folder is very large or corrupted.
What Compacting Actually Does
When you delete a message in a local folder or a POP folder, Thunderbird marks it as deleted but keeps the data hidden inside the folder file. This design makes undo possible and makes deleting fast. Over months, those hidden deleted messages can take up gigabytes.
Compacting rewrites the folder file without the deleted data. Think of it like taking a notebook, copying only the pages you still need into a fresh notebook, and discarding the old one. The visible messages stay exactly the same, but the wasted space is gone.
Compacting is not the same as compressing photos or zipping a file. It does not change your kept messages at all. It also is not the same as archiving. Archiving moves messages to another folder. Compacting simply removes what you already deleted.
IMAP is different — and this confuses many people
With IMAP, your mail lives on the server and Thunderbird keeps a local copy for speed and offline use. If your provider says your mailbox is full, that is a server quota problem. Deleting in Thunderbird and then compacting or expunging tells the server to permanently remove those messages. If you delete but never expunge, the server may still count them.
With POP and Local Folders, the quota warning is usually about space inside Thunderbird’s own storage on your computer, or a single folder file becoming too large to work reliably.
Before You Compact: A Safe Checklist
- Empty Trash and Junk first: Right-click Trash and choose Empty Trash. Do the same for Junk or Spam. There is no point compacting a folder you are about to empty completely.
- Check you are online for IMAP: Compacting IMAP folders needs a stable connection so Thunderbird and the server agree on what was deleted.
- Do not compact during a storm of activity: Avoid starting compacting while a large download, send, or filter run is happening.
- Note your largest folders: Right-click a folder, choose Properties, and note its size and message count. Inbox, Sent, and All Mail type folders are usually the biggest.
- Consider a backup for very large mailboxes: If your profile is many gigabytes, a quick copy of the profile folder gives you peace of mind before a major cleanup.
Mozilla’s own documentation explains the difference between deleting and permanent removal in its article on compacting folders in Thunderbird and why it is necessary. It is a short read and confirms that compacting does not delete your kept messages.
How to Compact Folders Step by Step
Compact one folder
- Click the folder you want to compact, for example Inbox.
- Right-click the folder name in the left pane.
- Choose Compact from the menu.
- Wait for the status bar at the bottom of Thunderbird to finish. Do not open and close messages rapidly during this time.
- Check the folder Properties again to see the new, smaller size.
Compact all folders in an account
- Click File in the menu bar, then Compact Folders. In newer versions you may find it under File or the main application menu.
- Thunderbird will work through the folders in the selected account.
- Leave Thunderbird open and idle until the progress indicator disappears.
Turn on automatic compacting
- Open Settings, then General, and scroll to Network and Disk Space, or open Settings, Privacy in some versions and look for disk space options.
- Enable “Compact all folders when it will save over” and set a sensible threshold, such as 20 MB.
- Choose whether Thunderbird should ask you before compacting. Allowing it automatically prevents huge backlogs.
If you manage several accounts, repeat the check for each one. A tidy Gmail IMAP account does not fix a bloated Local Folders archive sitting next to it. Our related guide on how to archive old emails in Thunderbird to free up space shows how to move older mail out of your Inbox before compacting, which makes the whole process faster.
When Thunderbird Says Mailbox Full Even After Deleting
Work through these causes in order.
1. The server quota is still full (IMAP)
Log in to webmail and look for a storage meter. In Gmail, for example, storage is shared with Drive and Photos, so deleting mail alone may not be enough if Drive is full — Google explains this in its help on how Google storage works and what counts towards your quota. Delete large attachments in webmail, empty Trash there too, and wait a few minutes for the quota to update.
2. Deleted messages were not expunged
In Account Settings, Server Settings, check what happens “When I delete a message.” Options like “Mark it as deleted” leave the message on the server until you compact or expunge. Use File, Compact Folders, or for IMAP use the expunge action, to finalise removal.
3. One folder file is corrupted or oversized
If a single folder refuses to compact or shows a wrong message count, right-click it, choose Properties, and use Repair Folder. Repair rebuilds the index. It does not delete messages, but you should still have a backup if the folder holds your only copy of POP mail.
4. Trash is set to a different account
Sometimes deleted mail moves to Local Folders Trash instead of the account Trash you emptied. Check every Trash folder in the left pane, not just the first one.
How Often Should You Compact?
If you delete mail daily, letting Thunderbird auto-compact when it can save 20 MB or more is a good balance. Heavy users who delete hundreds of messages a week may compact the Inbox weekly. The key point is regularity: small, frequent compacts are quick and safe, while a first compact after years of use can take a long time and feel risky simply because the folder is enormous.
Never force-close Thunderbird in the middle of compacting. Interrupting the rewrite is one of the few ways compacting can cause problems. If it seems stuck, give a very large folder time — check disk activity and wait — rather than ending the program.
Common Mistakes to Avoid
- Deleting your profile folder files manually: Never delete .msf files or folder files in Explorer or Finder as a shortcut unless a support guide for your exact problem tells you to. Using Thunderbird’s own Compact and Repair tools is safer.
- Compacting before emptying Trash: You waste time compacting messages you are about to throw away permanently anyway.
- Assuming local compacting fixes a server quota: For IMAP, always confirm the quota in webmail. Local space and server space are two different limits.
- Turning off auto-compact forever because of one prompt: The prompt exists to protect you, but disabling it completely leads to the mailbox-full surprise months later.
- Storing everything forever in Inbox: A single folder with tens of thousands of messages will always be slow to compact and repair. Use yearly archive folders.
Conclusion
When Thunderbird says your mailbox is full, deleting is only half the job — compacting is the half that actually frees the space. Empty Trash and Junk, compact your largest folders first, and for IMAP accounts confirm the change on the server and in webmail so the quota really drops. Turn on automatic compacting so small cleanups happen regularly, and give large compacts time to finish without interruption. With that routine, your folders stay lean, Thunderbird stays faster, and the mailbox-full warning stops coming back.
Frequently Asked Questions
Will compacting delete emails I want to keep?
No. Compacting only permanently removes messages you already deleted or moved to Trash and emptied. Messages that are visible in the folder are copied safely into the rewritten folder file and remain exactly as they were.
How long does compacting take?
A small folder takes seconds. A folder with many gigabytes of hidden deleted mail can take several minutes. Time depends on disk speed and folder size, so let it finish and watch the status bar rather than closing Thunderbird.
Why does my folder size not shrink after compacting?
If you had very few deleted messages waiting, there was little to reclaim. For IMAP folders, the local size may shrink while the server quota does not, which means you need to delete and expunge on the server or free space in webmail.
What is the difference between Compact and Repair Folder?
Compact removes permanently deleted data to save space. Repair Folder rebuilds the folder index that lists messages, fixing wrong counts or missing subjects. They solve different problems and are sometimes used one after the other.
Can I compact folders while offline?
For Local Folders and POP folders, yes. For IMAP folders, it is better to be online so Thunderbird can sync the permanent deletions with the server and your quota updates correctly.


Leave a Reply