I have been using Thunderbird 3 since its final release, and overall I have enjoyed it. I never quite liked version 2, but version 3 appeals to me a bit more. I’ve got multiple accounts configured, and it has been working very well. The one issue that I recently discovered is the HUGE amount of disk-space that it can take up. In this post I’ll outline how to regain that lost space.
If you have been using Thunderbird 3, take a look at how much space the .thunderbird folder is using. Open a terminal (Applications > Accessories > Terminal), and run the command:
On my machine Thunderbird was using 923M of disk space! I was very surprised to find that amount–I didn’t even think I had that much email! This got me curious, because Thunderbird 2 never used nearly this much disk space! I made my way to Google to do some digging, and this is what I found out.
Your .thunderbird profile directory contains all of your settings, as well as your ImapMail headers and other information. If using the default Thunderbird settings, all email will also be synchronized to your local computer. This means that your email, including attachments, will be stored within this directory (ie; .thunderbird/*.profile/ImapMail/). I have this option turned off, and I’ll outline how to do so below.
I bring up the topic of the profile directory simply so that you are aware of the files contained there. Some of these files are those that you’ll end up deleting to remove some of the bloat that can come along with Thunderbird 3 settings. Generally, the files that take up the most space are:
We’ll have a look at each of these below.
ImapMail – Mail Synch and Cache
Assuming you are using IMAP with your mail accounts, you will have an ImapMail folder, caching email and headers for your Imap accounts. If you take a look into this directory you’ll find sub-folders for each of your accounts. If you have “Message Synchronization” activated (which, I believe, is the default), you should have a local cache of all your mail in this folder.
If you’d prefer to disable this feature to regain disk space, you can do the following:
- Delete the contents of the ImapMail/mail.domain.tld/ folder (where mail.domain.tld is your mail server(s)).
- Disable “Message Synchronization” in Edit > Account Settings > Synchronization and Storage
- I would suggest leaving the remaining settings at their defaults. This post doesn’t cover them.
Global Search and Indexer
Once I deleted the previously synchronized mail from my ImapMail folder I still found that there was over 200M being used elsewhere. After some additional digging I found that the bulk of this was used by the global-messages-db.sqlite file. This file is used for the Global Search and Indexing features of Thunderbird 3. I did a little research and this sqlite database is used to index your messages, attachments, etc. The new additions in Thunderbird 3 allow you to search this database and quickly find files and messages.
I realized that I rarely use the search feature, so I disabled this setting and freed up a lot of additional space. I use Message Filters to sort my mail, so disabling Indexing and Searching doesn’t affect me. If you would like to disable Global Search and Indexer, and free up an additional 200M of disk-space, do the following:
- Delete the global-messages-db.sqlite file, and regain the disk-space.
- Uncheck “Enable Global Search and Indexer” in Edit > Preferences > Advanced > General
I would be interested in any additional feedback the readers have about improving Thunderbird 3. How to make the client more efficient or customizable.