Compact Folders In Thunderbird To Save Disk Space

Overview

I have been using Dropbox to sync my mail across multiple computers (I’m old school using POP protocol) which has been working great.

Recently I received an email from Dropbox saying I was running out of space on my free 2GB account. I found that my Mozilla Thunderbird profile which contained mainly my emails were taking up about 1.1 GB of hard disk / Dropbox space.

Compacting Folders

According to the Mozillazine article compacting folders reduces the size of the files used to hold email and email information. What happens is when an email is “deleted” it is actually hidden from the user but remains in file and is “marked for deletion”. Moving files also does the same thing. It creates a copy of the email in the respective “folder” in Mozilla Thunderbird and hides the original email in the previous folder. This means the size of the files related to email gets bigger and bigger.

The reasoning for this behaviour is reasonable. If a user deletes or moves emails in quick succession it makes it quicker to hide something than it is to physically remove / update a file on a hard disk. All email programs does this. The difference between Thunderbird and other email clients is that Thunderbird does not have automatic folder compacting set to run automatically.

How To Compact A Folder

If the folder you wish to compact have a lot of emails or have not been compacted before then it is best to back up your profile before doing so.

Whilst it’s good practice to have a backup compacting folders may take a while to complete and if anything wrong occurs it may corrupt the folder. The profile to back up is found in Tools > Account Settings...
Select Local Folders in the left hand side and the profile path can be found in Local directory field.

If multiple local accounts are used each one should be backed up before bulk compacting.

To do all the folders the above steps needs to be performed on all folders or set up automatic compacting.

Automatic Compact

Mozilla Thunderbird supports automatic compacting based on size of a folder.

Compacting folders

About Danny

I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Software and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.