Thunderbird only compacts one folder or one account at a time, and the "approx. X saved" message disappears from the status bar pretty quickly. I have a lot of accounts and folders, and I have a LOT of log/notification emails from work and Thunderbird it is set up to automatically delete these every so often but I had to manually compact the folders/account all the time.
So I made a small extension that does all of that in one go and with showing how much space was saved:
- it shows an estimate of how much space you can get back before you start
- compacts every folder of every account with one click (local folders, POP, RSS and the offline copies of IMAP folders)
- shows live progress, and keeps working if you close the popup
- tells you at the end how much space was actually recovered, measured on disk, by account and by folder
It is not on addons.thunderbird.net: compacting folders is not possible with the regular extension API, so it uses an experiment API, and ATN has paused reviews of new add-ons that use experiments until at least the next ESR in 2027. So you install it from file, and it keeps itself up to date from GitHub.
Download and source: https://github.com/stefangabos/compact-everything
Tested on Thunderbird 140 ESR and 160. Feedback welcome!