Migrating a KMail installation including GnuPG

These are the steps to migrate a KMail installation with GnuPG (GPG) keys and mail account passwords maintained by KWallet. It worked perfectly for a migration from PCLinuxOS 2005 (0.93) to Kubuntu 7.10 (Gutsy Gibbon), which is KMail 1.9.5/KDE 3.5.5 to KMail 1.9.6/KDE 3.5.8.

This is assuming you are logged in to a terminal on your new Linux installation with the files of your old home directory copied to ~/oldsys/):

> cp -a ~/oldsys/.kde/share/apps/kmail/* ~/.kde/share/apps/kmail/
> cp -a ~/oldsys/.kde/share/config/kmailrc ~/.kde/share/config/
> cp -a ~/oldsys/.kde/share/config/kmail.eventsrc ~/.kde/share/config/
> cp -a ~/oldsys/.kde/share/config/emaildefaults ~/.kde/share/config/
> cp -a ~/oldsys/.kde/share/config/emailidentities ~/.kde/share/config/
> mv ~/.gnupg ~/.gnupg-orig
> cp -a ~/oldsys/.gnupg ~/
> mv ~/.kde/share/apps/kwallet ~/.kde/share/apps/kwallet-orig
> mkdir ~/.kde/share/apps/kwallet
> mv ~/.kde/share/config/kwalletrc ~/.kde/share/config/kwalletrc-orig
> cp -a ~/oldsys/.kde/share/apps/kwallet/kdewallet.kwl ~/.kde/share/apps/kwallet/
> cp -a ~/oldsys/.kde/share/config/kwalletrc ~/.kde/share/config/kwalletrc

Of course, this also assumes that you have the necessary packages like kmail, kwalletmanager, gnupg already installed.

Comments

Comments are closed.