Compacting foldersFrom MozillaZine Knowledge Base(Redirected from Thunderbird : Tips : Compacting Folders)
When you delete or move a message most e-mail clients simply hide the message and mark it as ready for physical deletion later on. These hidden messages still remain in the folder. Even emptying the Trash does not physically delete them. These hidden messages are not physically removed until the folder is compacted. If you don't compact your mail folders periodically, they can grow very large, and erratic program behavior may occur. Many users have never heard of compacting folders (not to be confused with compressing a file). However, most e-mail clients do this to improve performance by not requiring the e-mail client to rewrite the entire folder every time you delete a single message. The reason you might never have heard of compacting is that most e-mail clients default to automatically compacting the folder whenever a certain amount of space is wasted, while you have to enable this in Thunderbird.
[edit] How to compact foldersThe best way is to let Thunderbird do this automatically: "Tools -> Options -> Advanced -> Network & Disk Space -> Disk Space -> Compact folder when it will save over 100 kB -> OK." To compact all folders in an account manually, click the account on the left, and then click "File -> Compact Folders". Compacting an account may take from a few seconds to 10 minutes or more, depending on how much mail you have and how recently you last compacted the folders. If you have trouble doing this and the process stalls, try compacting one folder at a time by right-clicking on the folder and choosing "Compact This Folder". If you do not let Thunderbird compact automatically, you should do this regularly, at least once a week. If you do it daily, it will take only a fraction of the time. Most people never have a problem compacting a folder when its online. However, if you get Nstmp folders that's due to the compacting being interrupted while Thunderbird is downloading new messages. You can avoid this by going offline before compacting (go to "File -> Offline -> Work Offline", or simply click on the icon in the bottom left corner.) It is rare for this to cause other problems but if you suspect it, experiment with going offline before compacting (ideally on a new known good folder). You can only compact IMAP accounts while you are online. However, this normally doesn't cause a problem since IMAP accounts only download the headers to the hard disk. [edit] Other ways to compact foldersThe Xpunge extension lets you add a button to empty the trash and compact the folders in multiple accounts (in one step). If you use the beta version you can set a timer to automate that. The Mozilla Add-ons web site has several other extensions that add buttons to compact folders. If you have an IMAP account there are two ways to automate compacting its folders.
[edit] Problems when compacting[edit] Compacting seems to take foreverUsually it only takes a couple of minutes to compact your folders unless your profile is over a gigabyte in size or your computer is slow. The worst that normally happens if you exit Thunderbird before it finishes compacting is that it fails to delete some nstmp temporary files that it created and you have to manually delete them. If compacting takes a long time, the status bar at the bottom of the window may not remove the text about it compacting a folder when it finishes. It may also fail to update that text to mention the last folder in that account if you use "File -> Compact Folders". If you do something else that normally displays some text in the status bar, it should replace the message about compacting. [edit] Compacting doesn’t seem to workIf compacting folders doesn't seem to work even for a single folder (where you right-click on the folder and choose "Compact This Folder"), it is possible that the folders and/or the .msf mail summary files are corrupted. If the corruption is mild you frequently can fix it by deleting the .msf file(s).
If you’re using Windows a quick way to find the .msf files in all of the subfolders is to enter *.msf in Start->Search. On Windows XP, ensure that "Search hidden files" is chosen under "More advanced options"; on earlier versions of Windows, ensure that hidden files are viewable in Windows Explorer ("Tools -> Folder Options -> "View hidden files and folders").) Make sure that you only delete msf files in Thunderbird folders - other programs may use the same extension! If the corruption is severe deleting the .msf files won't help much, and compacting the folder may just make it worse. You'll typically run into this only with the Inbox folder. Its much more vulnerable to corruption because many users tend to store lots of messages in it and they also frequently delete messages in it. Thats why its recommended that you don't permanently store messages in your Inbox folder, move them to other folders. You can fix the problem by replacing the corrupt folder with a new known good folder that you copied the messages to.
[edit] What if you don’t compact folders?If you rarely or never compact folders, your mail files will accumulate more and more of the "hidden" messages that have been marked for permanent deletion but have not yet been removed. This can cause a lot of disk space to be used, and it can have a negative effect on Thunderbird’s performance.
[edit] See also[edit] External links
|
|