Migrating your Claws Mail to a new installation
It's about that time. Ubuntu 10.4 is coming out and I am finally going to migrate my primary desktop away from Elive to Ubuntu. In this process it will be necessary to migrate my currently running Claws Mail installation from one machine to another. For some applications (think Outlook) this would be a tedious (and sometimes painful) task. But for applications like Claws Mail, the task is a simple one. And in this article I am going to walk you through the process of migrating a running Claws Mail installation from one machine to another.
Although the task is a simple one, there are a number of steps you should take in order to make the process much easier. The first thing you should do is take note of all of the plugins and configurations you have set up on your currently running installation. One thing in particular you will want to do is to make sure you update Claws Mail to the most recent release on both installations. If the target installation is newer than the source, the method I am going to outline will not work (and you will have to do some of this a bit more manually).
The easiest way to take care of much of the preliminary work is to open up Synaptic and do a search for "claws" (no quotes). In the results you want to make note of the release number as well as all of the plugins and extras you have installed. Once you have that noted, head over to the target machine and make sure your Claws Mail installation matches perfectly. Once you have all of that complete, you are ready for the migration.
NOTE: Do not start Claws Mail on the new machine until you have been instructed to do so.
To make this really easy you will need secure shell access to the new machine (from the old machine).
The first thing you must do is close out Claws Mail on the source machine. Once you have done that open up a terminal window and issue the following commands:
tar cfz ~/Mail.tgz ~/Mail
tar cfz ~/claws-mail.tgz ~/.claws-mail.tgz
What the above commands are going to do is create archives of the only two directories you need on your new installation. Now you need to send those archives to the new destination. Do that with the following commands:
scp ~/Mail.tgz [email protected]_ADDRESS_OF_DESTINATION:home/USERNAME/Mail.tgz
scp ~/claws-mail.tgz [email protected]_ADDRESS_OF_DESTINATION:home/USERNAME/claws-mail.tgz
Where USERNAME is the actual username of the user on the Linux box and IP_ADDRESS_OF_DESTINATION is the address of the destination machine.
Now it's time to move to the destination machine. Open up a terminal window and do the following:
tar xvfz ~/Mail.tgz
tar xvfz ~/claws-mail.tgz
The above commands will unpack the archives, recreating the folders necessary for Claws Mail, with all of the configurations as well as Inbox and folders you had on the old installation. Now all you have to do is fire up Claws Mail and see that all of your email and configurations are there, intact.
Did you ever think migrating an email client from one machine to another would be so simple? I have been in the field and have witness the madness of migrating PST and OST files from one outlook installation to another. It's not pretty. Migrating Claws Mail, on the other hand, is as easy a migration as you will find.Advertisement