DesktopLinux
Home  |  News  |  Articles  |  Forum  |  Polls  |  Blogs  |  Videos  |  ITLink

Keywords: Match:
Keeping Thunderbird from breaking
by Steven J. Vaughan-Nichols (May 16, 2006)

My love/hate relationship with Thunderbird, the Mozilla Foundation's email client, continues. On the one hand, Thunderbird's a very good open-source email/Usenet/RSS client. It's easy to filter, search, and sort messages with Thunderbird -- even with multiple mail accounts. And, unlike Evolution, my favorite email program, it's also available on Windows and Mac OS, besides Linux.

So, what's the problem?

Well, actually, there are a lot of them. I've already gone over its lack of business-ready features, like individual and group calendaring. More recently, though, both I and some of my friends have been seeing far too many examples of Thunderbird breaking.

Fortunately, there are some ways around these problems. Here are a few solutions for some of the more common Thunderbird trouble spots that I've tested out myself.

Always use the newest

First, you should always use whatever the most recent version of Thunderbird you can get your hands on.

As I write this, in early May, that's Thunderbird 1.502, which includes many security fixes.

This newest version is available for all three supported operating systems. Well, there is one exception -- there's no native support for Mac OS X on Intel. Still, you can run it on Mactels if you use Rosetta. In light of the many security fixes, I'd run it on Rosetta rather than use an older version. Thunderbird's programmers do promise that there will be a native Mactel version for 1.503, however.

Just as important, for my use, is that the new version includes numerous bug fixes. These range from program crashes, to RSS feed lock-ups, to some copy and paste problems.

Put them all together and you have a release that's a "must upgrade" for any Thunderbird user.

The right way to upgrade

However, do not -- I repeat, do not -- simply upgrade over your old copy of Thunderbird. Bad things will happen. Officially, this is only a truly awful idea with upgrading from Thunderbird 1.0x to Thunderbird 1.5x, but I and other people I know have found plenty of trouble in upgrading from one 1.5x version of Thunderbird to another.

So, what you should do, instead, is uninstall Thunderbird. This will not destroy your old email or profile settings. These are kept in another location -- far, far away from the program files.

To be precise, Thunderbird keeps your profile and mail in the following locations:
    Windows 2000, XP:
      Documents and Settings\\Application Data\Thunderbird\Profiles\\

    MacOS X:
      ~/Library/Thunderbird

    Linux and Unix systems:
      ~/.thunderbird
The profile name in Windows is eight characters of gibberish followed by a "." and the profile's name. If you have given your account a name, the extension will be "default."

You say you still can't find it in Windows? That's because in Windows, application data and the directories underneath it, are hidden. To be able to see them, you'll need to double-click on your My Computer icon and then click your way down: Tools > Folder Options > View (tab) > Show Hidden files and folders.

It's hidden in Linux and Unix, as well, but in those operating systems, that '.' at the beginning of a file or directory name is a dead give-away that they're hidden.

Backing up your profile

Now, if you're paranoid, like I am, you can also backup your profile. The simple way to do this is to simply copy the profile directory. To do this, close down Thunderbird, double-check to make sure there are no Thunderbird processes left running, and then copy it to wherever you want with your copying tool of choice.

Then, if you need to restore it, you reverse the process. Again, you start by making darn sure that Thunderbird isn't running and then copying your backup to its original location. You must, however, place it back in exactly the same place. If you don't, Thunderbird won't be able to find your profile, and you'll just have to start over again.

What about if your profile is corrupted? In that case, you'll need to create a new profile using the Profile Manager. For instructions on that, refer to this mozillaZine article.

Then, you'll need to manually copy a variety of files from your corrupt profile to the new one. This is, without a doubt, a major pain. One of the big reasons why I backup my profile is to avoid going through this process.

Next, before starting the new version Thunderbird, you should restart your computer if you're using Windows, or your desktop session if you're running Mac OS X or Linux. If you don't, chances are that when you try to start the new version of Thunderbird, the only thing that will happen is that the icon will blink a time or two.

Did you do all that and the program still refuses to run? Chances are that your profile is corrupt.

In this case, use the Thunderbird Profile Manager to set up a profile with a new name. You'll then need to recreate your basic email settings and folders. It's now that you'll be glad that you have a backup profile, because you can simply copy it over.

You don't have a backup? Whoops! You've no choice, then, but to try to salvage your mail and settings from the old wrecked profile.

Search and rescue

To get your mail back, find the mbox files in your profile directories. Don't bother with any files with the ".msf" extension. These are "mail summary files." They don't hold any messages themselves. When Thunderbird restarts it will rebuild these files.

Then, you'll need to copy the mbox files to your new profile. Personally, this is when I find the old MS-DOS Norton Commander, and its Unix/Linux brother Midnight Commander invaluable. It makes copying or moving files between directories much easier than the various default file managers.

Mbox, in case you haven't met it before, is a very common mailbox format. It's used by many Unix and Linux email programs as well as such popular Windows and Mac programs as Eudora. With mbox, all messages for a folder are stored in one large file.

No matter the operating system, most programs don't give mbox files an extension. So, for example, in Thunderbird, your default inbox is named 'inbox." This is the file you'll need to copy. You don't need to worry with the inbox folder "inbox.sbd" or the aforementioned msf files.

Once the mbox file is in place in its new home, you should be able to open it and read your messages again. Now, things can go wrong here too, but if that's the case, I can only tell you to head to mozillaZine's Thunderbird knowledgebase or support forum. In my experience, mozillaZine does a better job of helping users get a handle on their Thunderbird problems than the official Mozilla help pages.

For bringing back your personal and collected address books, copy over the abook.mab and history.mab files. For your other address books, follow the instructions in: Moving address books between profiles.

You might be thinking right now that you could solve all your problems by simply copying everything, except the files you need to delete, from the old profile to the new one. Nope. It doesn't work. Some of the files contain absolute directory paths, and they will cause Thunderbird to blow up if you try using them.

Look ma, no messages!

Let's take a look at another common problem: You open up your email one day, and all your messages are missing. Isn't that a great way to start your day!

Thunderbird gets just a wee bit confused sometimes about keeping track of its messages. The root of this problem is that it doesn't do well with handling large numbers of mail messages. The program has gotten better, but it still happens often enough that it really ticks me off.

The first thing you should do is close Thunderbird and head to your Profile mail directory and sub-directories. Once there, delete all your ".msf" files. Then, restart Thunderbird. With luck, you'll be back in business.

Be unique

One way to avoid problems is to avoid using Thunderbird's default mail account. The program has an annoying habit of losing track of its "default" mail profile. Don't ask me why -- it's beyond me.

Usually, the first time you run into this is when you start up Thunderbird and -- what's this? -- you see the new account window instead of the application. You can usually get things back to normal, by closing out of the new account dialog and using Profile Manager to make Thunderbird start with the default profile.

Better still, when you first create your Thunderbird account, create your profile with a unique name. I, for example, use sjvn. Thunderbird will not lose track of this unique name. Or, at least, it hasn't yet on any of the machines I've set up with unique user names!

While, you're at it, if you're running Windows, why not do yourself a favor and create a top-level directory under My Documents for your Thunderbird profile with Windows Explorer, Norton Commander, or your file manager of choice. That way, it will be a lot easier to find when something goes wrong.

Then, you can use that folder for your profile when you run the Create Profile Wizard. It will make your life a lot easier.

Compact those folders!

Another must technique for avoiding Thunderbird annoyances is to run the command: File > Compact Folders. You see, when Thunderbird deletes email messages, it doesn't really delete anything. It's just hiding them from you. It's only when you run Compact Folders that the messages actually get wiped.

If you don't run Compact Folders, you accumulate this deleted crud, and Thunderbird will eventually stall out in one annoying way or another -- leaving you wondering what the heck happened.

Every time I look in on the Thunderbird support forums, the number of ways that uncompacted folders can make your life miserable keeps going up. If you don't do anything else with Thunderbird, run Compact Folders at least weekly on your inbox and any other folders you might have where you're frequently deleting or moving files.

Trust me, it's worth the trouble.

Getting Thunderbird and anti-virus programs to cooperate

Finally, if you're running an anti-virus program -- and you absolutely must, if you're running Windows -- make sure that when it handles a virus it won't delete your entire inbox.

Sound unlikely? Think again, remember that mbox stores all your messages in one file. If your anti-virus software is set to delete virus-carrying messages and that message is already in your inbox, guess what happens? That's right. Bye-bye inbox.

You can set Thunderbird 1.5 or higher, to first drop new messages into a temporary file before bringing them to the inbox. The command is Tools > Options > Privacy > Antivirus." Once there, check the "Allow anti-virus clients to quarantine individual incoming messages" box. I highly recommend this.

For more on Thunderbird and anti-virus issues, read the mozillaZine article, "Antivirus software."

After all this, I think you can see why I prefer Evolution. Still, Thunderbird is getting better, and if you keep a close eye on it, it's a fine personal email program for Linux, Mac OS or Windows users.


-- Steven J. Vaughan-Nichols



Do you have comments on this story?


Talkback here

NOTE: Please post your comments regarding our articles using the above link. Be sure to use this article's title as the "Subject" in your posts. Before you create a new thread, please check to see if a discussion thread is already running on the article you plan to comment on. Thanks!




Related stories:

(Click here for further information)


Approaching the Linux Desktop
The purpose of this paper is to help organizations evaluate the Linux desktop against their own enterprise needs and discover what benefits the Linux desktop might bring to their organizations.

Migrating To Linux: Application Challenges and Solutions
Several solutions exist to help organizations migrate in an orderly fashion from Windows to Linux desktops. This paper establishes the characteristics of an ideal cross-platform solution and reviews these alternatives in light of this ideal standard. The paper takes a closer look at the pros and cons of various solutions and outlines the business benefits that can be achieved.

Linux Advantages: Publicly Available Information on Linux Software
This paper offers a brief summary of readily-available Linux information to help businesses sort out this widely misunderstood operating system.

Top 5 Strategies for Managing Linux
Despite continuous evolution in the manageability of Linux, a 2006 survey cited manageability concerns as a top reason why organizations are hesitating to adopt Linux. Levanta believes Linux can be as manageable, if not more so, than other operating systems by following key strategies. These strategic recommendations were developed from experiences in numerous customer environments, both large and small.

Why Choose Novell for Linux?
This paper outlines the benefits of switching to the Linux platform and choosing Novell as a high-performance, enterprise solution.

Enterprise Linux Selection Guide
Considering moving your enterprise to the Linux operating system? Since there are so many similar versions, choosing the right one can be tough. This paper offers a clear process to help you make an informed decision and get the features, support, and cost that are right for your business and technical needs.

Overcoming Challenges in Managing Linux
Levanta has created a new administration model with innovative technology that breaks down the barriers to making the most of Linux systems. This paper will provide an in-depth look at the workings of Levanta’s product, the first Linux appliance of its kind.

SUSE Linux Enterprise 10 for Retail Businesses
Discover why major retailers have switched to SUSE Linux Enterprise Desktop in the back office. SUSE Linux Enterprise Desktop 10 is a low-cost desktop that offers a complete set of productivity applications and interoperates seamlessly with the other Windows, Macintosh and UNIX desktops in your store.

Moving to a Linux Desktop
Migrating from Windows to Linux on the desktop can be a substantial undertaking because it has the potential for touching -- and perhaps disrupting -- every user in your organization. Unlike a data center (server and infrastructure) migration that is largely transparent to users, the cultural and administrative transitions and environment readiness required to support a Linux desktop migration are extensive.

Seven Good Reasons to Exchange Exchange
This paper describes seven compelling reasons why you should switch from Exchange to Scalix.

 



Got a HOT tip?   please tell us!

ADVERTISEMENT
(Advertise here)

Popular recent stories:
• Lightweight GNOME alternative emerges
• Linux gains action RPG
• World's cheapest Linux-based laptop?
• WiFi software arrives on Linux desktops
• BeOS-like distro focused on content creation
• Graphics board vendor touts faster Linux drivers
• Linux mini-PC takes two Watts to tango
• Hats off to Fedora 9
• Debian looks to launch lenny in Sept.

All-time Classics:
• Choosing a desktop Linux distro
• Banshee -- the next best thing to Linux iTunes
• The Best Free Desktop Linux . . . and how to make it better
• Running World of Warcraft on Ubuntu
• Linux-powered Asus Eee PC mini-laptop arrives
• A simple Linux backup method
• The well-tempered Debian desktop
• What's the best Linux for beginners?
• VirtualBox: The best virtualization program you've never heard of
• Getting to know Puppy Linux
• Xandros 4: The best desktop Linux for Windows users


Desktop Linux books

Join our Desktop Linux discussion forums:
•  Moving to Linux
•  Linux/Windows debate!
•  Linux Q&A
. . . and more


BREAKING NEWS

• Summit debuts for Linux end users
• "UbuntuLite" reviewed
• Linux in the SME
• Linux: not yet photo-friendly
• Linux to gain anti-virus software
• Linux gains backup utility
• Testing Lenny
• HP offers Linux on low-end mini-notes
• Dell shipping five Hardy Heron systems
• IBM pushes "Microsoft-free" desktops
• Unified communications groupware comes to Linux
• Lightweight GNOME alternative emerges
• Freespire lives! Goes back to Debian
• gOS 3.0 goes Gadget crazy
• WiFi software arrives on Linux desktops


Linux-Watch headlines:
• Linux -- not yet photo-friendly
• Microsoft buys additional Linux support
• SFLC publishes GPL compliance guide
• Linux switch vendor sued over GPL
• Judge Kimball rules -- the sequel!
• Microsoft tactics push India toward Linux
• Bell, SuperMicro sued over GPL
• "Business intelligence" software goes GPL
• Will Atom bomb?
• LF Summit videos posted


Visit the...


news feed

Home  |  News  |  Articles  |  Forum  |  Polls  |  About  |  Contact
 

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
Tech RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video | VARs | Channel News

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | Enterprise Network Security | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | Security IT Hub | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | igrep

Use of this site is governed by our Terms of Service and Privacy Policy. Except where otherwise specified, the contents of this site are copyright © 1999-2008 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise is prohibited. Linux is a registered trademark of Linus Torvalds. All other marks are the property of their respective owners.