Frequently Asked Question
Compacting folders in Thunderbird and Betterbird removes message data that has already been marked for deletion, so the mailbox file can shrink and performance can improve.
This is often misunderstood because compacting does not compress email content like a ZIP file, and it does not remove messages that are still present in the folder. It simply tidies up the underlying mailbox storage.
What compacting does
In Thunderbird and Betterbird, when a message is deleted or moved from many folder types, the message data may remain in the local mailbox file until the folder is compacted.
Compacting a folder:
- permanently removes space previously used by deleted or moved messages
- reduces the size of the local mailbox file where possible
- can improve folder performance
- can help resolve some folder display issues caused by large, untidy mailbox files
Compacting does not:
- delete messages that are still visible in the folder
- download fresh copies of mail from the server
- archive mail
- compress attachments into a smaller format
- change the contents of messages you still keep
Why compacting is needed
Mailbox folders in Thunderbird and Betterbird often use a storage method where messages are appended to a file. When a message is deleted, it may only be marked as deleted internally. The space is not immediately reclaimed.
Over time this can lead to:
- folders becoming much larger than expected
- slower performance
- increased risk of corruption in very large folders
- local disk usage growing even when messages have been deleted
Compacting cleans up that unused space.
When to compact
Compacting is useful when:
- a folder has had many messages deleted or moved
- Thunderbird or Betterbird reports that compacting will save space
- local mail folders are growing unusually large
- a folder feels slow to open, search or sync
- disk space is limited
Important precautions
Before compacting large or important folders, it is sensible to take a few precautions:
- wait until message moves, deletes, downloads or synchronisation have finished
- avoid interrupting the process once started
- ensure there is enough free disk space
- if the profile contains critical mail, make a backup first
Thunderbird and Betterbird store local mailbox data inside the profile folder.
Compact a single folder
Use this when only one mailbox folder needs tidying.
Thunderbird and Betterbird
- Open Thunderbird or Betterbird.
- In the folder list, locate the folder to compact.
- Right-click the folder.
- Select
Compact.
This will compact that one folder only.
Compact an entire account
Use this when several folders under the same mailbox account need compacting.
Thunderbird and Betterbird
- Open Thunderbird or Betterbird.
- In the folder pane, right-click the account name.
- Select
Compact.
This normally compacts all folders under that account that need it.
Compact all folders
In many cases, compacting from the menu applies across folders that require maintenance.
Using the File menu
- Open Thunderbird or Betterbird.
- Open the
Filemenu. - Select
Compact Folders.
If the classic menu bar is hidden, it can usually be shown temporarily with:
Alt
On some systems, the menu may also be available through the application menu button.
Enable automatic compacting
Automatic compacting helps prevent mailbox files growing unnecessarily.
Thunderbird and Betterbird
- Open the application.
- Go to
SettingsorPreferences. - Open the
Generalsection. - Scroll to
Disk Space. - Enable the option to compact folders automatically when it will save a certain amount of space.
- Set the threshold to a suitable value.
Typical users simply leave the default threshold in place.
When enabled, the application will prompt or automatically compact depending on the version and settings.
What to expect during compacting
During compacting:
- the folder may be briefly unavailable
- large folders may take some time
- the application may appear busy
- disk activity may increase
Avoid:
- closing Thunderbird or Betterbird mid-process
- forcing the program to quit
- shutting down the computer until the task finishes
If compacting does not reduce size
Sometimes compacting appears to make little difference. Common reasons include:
- few messages had actually been deleted
- the folder uses a different storage format
- the space recovered was small
- synchronised IMAP folders may still reflect server content as normal
If a folder remains unusually large, possible causes include:
- large attachments in messages still kept
- duplicated mail
- local folders storing old mail
- mailbox file issues or corruption
If compacting fails or causes problems
If compacting does not complete properly or a folder behaves oddly afterwards:
- close and reopen Thunderbird or Betterbird
- compact the affected folder again
- repair or rebuild the folder index if message counts or contents look wrong
- check available disk space
- avoid compacting while antivirus software is heavily scanning the profile
A folder index rebuild is often done from folder properties.
Typical folder repair location
- Right-click the affected folder.
- Select
Properties. - Choose
Repair Folderif available.
This rebuilds the index, not the mailbox contents themselves.
Compacting and account type
IMAP accounts
For IMAP accounts:
- compacting mainly tidies the local cached copy
- the server mailbox contents are not changed beyond the deletions or moves already performed
- it can still be useful for reclaiming local disk space
POP accounts
For POP accounts:
- compacting can be especially important because mail is often stored locally
- large inboxes and sent folders can benefit significantly
Local Folders
For local archive or storage folders:
- compacting is very important after large clean-ups
- it can recover substantial disk space
Best practice
To keep Thunderbird and Betterbird healthy:
- enable automatic compacting
- avoid keeping very large numbers of messages in a single folder where possible
- create subfolders to split older mail
- archive older messages if appropriate
- compact after major deletions or moves
- keep regular backups of the mail profile
Summary
Compacting in Thunderbird and Betterbird is a housekeeping task that removes the remnants of messages already deleted or moved from the local mailbox file.
Use it when:
- folders have been heavily cleaned up
- disk space is being wasted
- a mailbox seems larger or slower than expected
The quickest methods are:
- right-click a folder and select
Compact - right-click an account and select
Compact - use
File>Compact Folders
For most users, enabling automatic compacting is the best long-term option.
