What is compacting folders in Thunderbird, and why you should do it

Are your Thunderbird folders taking up a lot of disk space, even though you only have a few messages? Is Thunderbird slow to open folders? It’s probably because you have not compacted your folders.

When you delete a message, it doesn’t really get deleted from the folder. It gets marked as deleted. Thunderbird sees that marking, and knows not to display the message. Compacting a folder will command Thunderbird to remove all messages marked as deleted from that folder.

To compact your folders, go to the File menu and select Compact Folders.
To compact an individual folder, right-click on the folder and select Compact.

If you’re having any issues, post in the Thunderbird Support forum at https://support.mozillamessaging.com/en-US/kb/ask

13 Responses

  1. Mahesh Asolkar June 10, 2011 / 2:44 pm

    Does this apply to both POP and IMAP accounts?

  2. Mark June 12, 2011 / 5:25 am

    Why does this not happen automatically in some manner?

    Users should not *need* to know something like this. It should just work.

  3. Chris Ilias June 12, 2011 / 8:51 pm

    It applies to POP and local storage of IMAP.

    I don’t know. It’s one thing I’ve been pushing for a long time.

  4. eric z September 8, 2011 / 1:34 pm

    I presume this compaction function is by the SQLite program part of the Mozilla product running the VACUUM command. I have seen web posts about using the VACUUM command for Firefox profiles, out of the Error Console, which seems in some cases to be posted online with a truncated command to cut/paste. I have seen compacting described as doable via the VACUUM command from the SQLite Manager addon, for any Mozilla *.sql file you can get to in a database loaded into the addon. I am inexpert about SQLite, but I could load a profile database into that addon to see individual *.sql entries.

    For Firefox there is a freeware (but not open source) utility, speedyfox, which I have used without problem fore easy profile-by-profile cleaning – not file by file. It has an icon and interface listing of profiles comparable to J.Griffin’s Profile Manager stand-alone program. I left a comment on his blog too, about it, and whether that functionality added to his utility as open source was a promising project.

    Firefox does not have the compacting file menu entry, not that I could find on any of the version menu displays I checked, and I read somewhere on the web that newer releases do it automatically. I have no idea whether this is so, nor did I save a link where the claim’s been made.

    If you are unfamiliar with the speedyfox utility, a Google will get info. Again I have used it on my profile w/o any mishap, no file corruption, etc., and it seemed to make things faster.

  5. Chris Ilias September 8, 2011 / 2:23 pm

    eric z,
    This has nothing to do with sqlite files. The files being compacted are UNIX mbox files.

  6. Ramon Vela September 19, 2011 / 6:32 pm

    Can you still search folders or emails that have been compacted?

  7. Bob P September 23, 2011 / 5:12 pm

    Can you still search folders or emails that have been compacted?
    I have the same question.
    Thunderbird kept asking me if I want to compact my files while in inbox.
    I clicked on ok,then all my inbox e-mails disappeared and I cannot find them.
    It is like it just deleted my entire inbox.Everything else stayed.
    Thanks for any help

  8. John G September 25, 2011 / 12:45 am

    same issue – compacted the inbox, all the files disappeared. Why? Where did they go? can they be recovered?

  9. Glen October 7, 2011 / 3:35 pm

    If files messages disappeared, you might be able to get them back by doing this:
    Right-click on the folder, and click Properties.
    Click Repair Folder.

  10. LadJ October 16, 2011 / 3:54 am

    Now I am afraid to do it in case I lose all my messages! John G – were you able to get them back using the Repair Folder option?

  11. Robert Miles November 6, 2011 / 6:46 pm

    The last I know, for newsgroups posts, deleting messages was still confused with cancelling them, and you could not delete a newsgroup message without cancelling it first (and as part of the same command). Has this been corrected?

  12. Damien D November 11, 2011 / 7:54 am

    When I clock compact then the whole inbox disappears. The rest remains the same but all my inbox messages are gone… Help !

Comments are closed.