I know some of you are asking why, rather than how, regarding migration from Mozilla Thunderbird to Evolution. Maybe that's why there are lot of Evolution to Thunderbird migration guides, but not many vice-versa. Fear not, here is a guide, to assist who dare to migrate from Thunderbird to Evolution. The techniques described here are tested with the newer versions of both the software, namely Thunderbird 2.0.0.4 and Evolution 2.10.2. On higher versions also this should work without an issue.
I think Mozilla people are doing a wonderful job with both Firefox and Thunderbird. From my point of view Firefox is the best general purpose web browser around. It beats most proprietary browser in speed, stability, security, modularity, etc. (and don't start commenting the so and so browsers are greater or so and so is cool too. I know they may be, Fx is simply my choice. This also applies to any comparisons with Evolution too :) However Fxs' counterpart in e mail business, is not yet there at the helm. Thunderbird is a great application especially combined with Lightning addon, but from my point of view it's not there yet where Evolution is.
Evolution on the othet hand, has been the most popular Linux mail client during the past few years. It was started as a project of Ximian (later bought by Novell), but now a part of GNOME Desktop. Evolution now has a Windows XP version too (still in alpha stage as of this writing). To be more true to the point, Evolution is not just a mail client, it's a PIM application.
Evo comes very competitively on par with commercial applications like Microsoft Outlook. If you are looking for a replacement for Microsoft Outlook in a Linux environment, then Evolution is your best bet without a doubt. But on the other hand, I wouldn't use Outlook as an Evo replacement on Windows (if I have to use Windows that is. I don't hate Windows, I'm just Pro-Open Source).
Evolution comes with many rich features like calendar, appointments, tasks, memos, signature management, encryption, filters, Palm device support, developer platform, LDAP support, even Microsoft Exchange Server connectivity and lot more. Evolution is more feature rich, advanced, stable, less memory consuming than Thunderbird. One day Thunderbird might be "the" e mail client for Linux, but today Evolution is simply "the" client.
There are two methods. One is slower, proper method, good to learn more about the process and so. The second method is much quicker and great when you have a lot to migrate. So here are the steps first, then I'll describe each step more (I assume both Thunderbird and Evolution are installed. If not you might want to do it at this point. Most mainstream Linux distros ship with Evolution).
Method 1 (slower): General Steps:
- Backup your .thunderbird directory
- Configure Evolution
- Export your contacts from Thunderbird and import them from Evolution
- Import your mail archives from Thunderbird to Evolution
Yes, it's that simple. So let's now dig into details.
Method 1: Detailed:1. Safety First (Backup your data)
Please backup the data before you try anything. Especially don't forget to get a copy of .thunderbird directory (located in the home directory, usually). All your current mails which you view withing Thunderbird are in this directory. So it is important to back this up.
(I'm not going to tell you how to copy a directory. It's out of the scope of this guide. Please refer to any documents on basic Linux operations.)
2. Configure Evolution
Create the necessary accounts in Evolution. How to configure accounts in Evolution is out of the scope of this howto. So I'll just assume that you created the desired accounts and relevant folders. For example I added my Gmail account and added several folder like Fun, Blog Comments, Personal, etc. to my Inbox folder. This is to organize your mails well. Now we are set to go.
3. Import Contacts
From Thunderbird you can export your contacts (Address Book) to several formats. Since our aim here is to import these back into Evolution, use either
csv or
ldif. This is how you do it.
In Thunderbird,
- Go to Address Book
- Select the address book you want to export, then
- Click "Export" from "Tools" menu (Tools --> Export)
- In the dialog give a name and a location to save the export
- Select either "Coma Separated" or "LDIF" as type
- Then click "save" to export
Now that exporting is completed, we can move into import these from Evolution
In Evolution,
- Go to Contacts Window View
- Click File --> Import
- Go ahead and select "import a single file" option when asked
- Select the file we created when exporting from Thunderbird
- Then import the contacts
Note: It's better to create a new address book to import the contacts, but it's rather your choice.
Now the contacts are imported and ready to go. So let us move to the next step.
4. Import mail archives
Now let's migrate your existing mails to Evolution. Thunderbird uses standars "mbox" format for mail folder, which is the most commonly used format in Linux. Your Thunderbird mail archives are at ~/.thunderbird/xxxxxxxx.default/Mail/ (where xxxxxxxx will a different alphanumeric string). In this directory you'll have directories according to your mail accounts. In my case it's /.thunderbird/xxxxxxxx.default/Mail/Local\ Folders/Inbox.sbd/
There will be two types of files there. Files without an extention and files with .msf extention. What we need are the files without extentions. Eg: Fun, Tech, etc.
In Evolution,
- Go to mail window view
- Click File --> Import
- Go ahead and select "import a single file" option when asked
- Select the file (mail archive) you want to import and select a location to be imported. Eg: I imported "Fun" archive (not Fun.msf) into a directory named "Fun"
- Repeat the last step for every archive you have
Done! Now you are ready to go. Your mails and contacts are now successfully migrated to Evolution. You might ask me why not straight away copy the mbox files? Why import them?
Well, actually I didn't try it. Anyone is welcome to try that and let us know. I've heard it worked for people. But personally I felt like doing this way because it is common sense, to carry out these general steps to migrate to any client using mbox format.
Method 2 (Easier):
Well, I know the above method works, but it's not going to be easy if you are to migrate a large number of mails, or many accounts. Simply the Method 1 is not scalable. :) So I've checked other ways to do this, without the hazzle of going through import and export steps. When you have more than a few folders to import this method should be much much painless and easier. But this method is only for mails, for contacts you still have to do import/export.
1. Create a folder to accommodate your mails.
You can do this either using Evo or by creating a directory under your Evo local folder directory. Better to create a folder and copy a message there (within Evolution), this will create the directory structure under ~/.evolution/mail/local/Inbox.sbd/
2. Copy the mail archive file to the new location in Evo local folder
Copy all the files in your Tunderbird mail directory into the newly created Evo directory. When you are copying files from your TB directory Eg: ~/.thunderbird/xxxxxxxx.default/Mail/
to the new Evo directory Eg: ~/.evolution/mail/local/Inbox.sbd/Thunderbird.sbd/ you only need the mbox files, there's no need to copy the .msf files.
If you don't want a separate folder for Thunderbird mails, you can just copy the files into ~/.evolution/mail/local/Inbox.sbd/
Note: There's a little tweak needed if your Thunderbird directories have spaces in their names. Eg: If your TB directories have a name like "archive prior 2008.sbd" copying it directly into Evo directory the mails would not appear as you would hope. This is because Evo doesn't use spaces in the mail directory names. So just rename them by replacing each space with an underscore ("_"). I cannot verify this note, as I haven't personally tested this. However it was reported by a user in the comments.
3. Restart Evolution
Done! Just like that, all your thousands of mails, hundreds of folders will now appear under the directory you created. Obviously this method is quicker than the previous one. You can consider the previous method a drill to learn the structure and workflow. :)
Whenever you want to backup your Evolution mail archives they are at ~/.evolution/mail/ How to completely backup Evolution data can be seen
here. Newer versions of Evolution has a neet function integrated in menus which will allow to backup Evo with settings (File --> Backup settings) and restore (File --> Restore settings). I've used it a couple of times and it works fine.
This post is based on an
article I've posted in
LinuxQuestions.org Linux Tutorial section. It also has a discussion
page. If you have Linux questions you can go and ask the wonderful online Linux community,
LinuxQuestions.org.