ghacks Technology News

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.

Preparation

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).

First steps

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 USERNAME@IP_ADDRESS_OF_DESTINATION:home/USERNAME/Mail.tgz

scp ~/claws-mail.tgz USERNAME@IP_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.

Second steps

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.

Final thoughts

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.

http://sourceforge.net/projects/quiteinsane/

Related Articles:

Customize your replies with Claws Mail Templates
Set up Claws Mail to work with Gmail
Claws Mail: The unsung powerhouse email client
Configure hidden preferences in Claws Mail with Clawsker
Encrypting email in Claws Mail

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.



About the Author:

Author: , Monday April 19, 2010 -
Tags:, , ,


Responses so far:

  1. rvdmast says:

    “For some applications (think Outlook) this would be a tedious (and sometimes painful) task.”

    And how exactly is this procedure, where users need to know about IP adresses and enter commands in a terminal, simpler then copying
    1 pst file to the new machine ?

  2. > Did you ever think migrating an email client from one machine to another
    > would be so simple?

    $ cp .thunderbird/ /newDrive/.thunderbird/

    Thunderbird keeps all extensions in the user’s home directory, so all the system needs is for Thunderbird itself to be installed.

  3. Pete says:

    -1 for pointless (not to mention erroneous) Outlook bashing.

    As rvdmast points out, Outlook migration is simply a matter of exporting and importing a .pst file.

    Don’t get me wrong–Claws is a cool mail client. It’s just a shame you chose to start the article on that note.

  4. alex says:

    is a good service

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us