LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-27-2005, 04:47 PM   #1
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Rep: Reputation: 15
Move kmail from one PC to another??


I want to move my existing kmail setup to another PC, I am currently running
KDE 3.3.2 with Kontact 1.0.1 (which kmail is apart off) kmail 1.7.1 running
on debain unstable with 2.4.18 kernel

I want to move it to a PC running KDE 3.3.2 kontact 1.0.1 kmail 1.7.1 running
on debian testing 2.6.8 kernel. This setup has no mail setup on it

The existing kmail setup has an inbox and 9 other mail boxes which which gets
sorted from mail filters within kmail. All mail is supplied straight from ISP

Its not so much the physical moving of the data (I intend to burn to cd and
transfer that way) but what files to move.

Thanks in advance

Tim
 
Old 01-28-2005, 12:17 PM   #2
draggin
Member
 
Registered: Jan 2004
Location: Bournemouth UK
Distribution: Debian & Mepis
Posts: 108

Original Poster
Rep: Reputation: 15
Any suggestions

Tim
 
Old 01-29-2005, 09:45 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Well, I moved my mail from Mandrake 9.1 -> 10.1 Official, but it was a pain, especially the transfer of my mail filters and distribution lists, but it worked in the end.

I wrote some notes to myself as I did it (because I'll probably have to do it again sometime), and I'm posting them here in case they help you.
Here we go:

===========MOVING KMAIL===========

Moving my kmail from MDK9.1 -> MDK10.1

I am dual-booting Mandrake 9.1 and a fresh install of 10.1Official
MDK9.1 has kmail 1.5, 10.1 has kmail 1.6.1

I wanted to move all my old mail, settings, address book, distribution lists, mail filters and whatnot to the new home for MDK10.1
There doesn't seem to be a simple tool to do this for you, and it has taken me an age to figure it all out.

So here is a guide as to how to do it.

Moving the mail:
Note: I am using mdir for my mailboxes.
Do NOT have kmail (kontcat) running at this time.

Be careful here: Old mail was stored in the (visible) directory ~/Mail, but kmail 1.6.1 stores mail in the (hidden) directory ~/.Mail
Rename new~/.Mail to new~/.Mail.original
Copy old~/Mail to new~/Mail (you'll probably need to be root to do this)
chmod everything in new~/Mail to the right owner:group like this (except you will not be "tg"!):

Code:
#chown tg:tg ./Mail
#chown -R tg:tg  ./Mail/*
#chown  -R tg:tg  ./Mail/.*
Start up kontact (kmail 1.6.1). It finds the old mails, and moves them to the new~/.Mail folder.
So far, so good.
Close kontact.

Moving the addressbook and distribution lists:
Copy the contents of old~/.kde/share/apps/kabc to new~/.kde/share/apps/kabc, overwriting newer files.
Change the owners and groups of these files as necessary to reflect your new home.

Start kontact.
Your address book is there, but not the distribution lists. There's a fault, but you can correct it:
Select the mail button in kontact
File....new Mail
Click the "To:...."
Click one of your contacts
Click the To>> button
Click another contact
Click the To>> button
Click "Save as distribution list"
Enter a name eg Test
Click OK
Close the mail composer and discard the email
Close Kontact

In konqueror, navigate to new~/.kde/share/apps/kabc/

Open the file distlists
At the top there may be a line like this: [/home/tg/.kde/share/apps/kabc/std.vcf]. If there is, you can delete that line.
Next you will see details your old distribution lists, but they are in the wrong place in the file. Cut and paste them so they are below the line Test=ILWal80aq,,w76TxTczu, (or similar)
Save the file the file distlists
Reopen kontact
Click Contacts
Click Settings....Show Extension bar....Distribution list editor
You should be able to see an use your distribution lists and now you can delete the list "Test" that you created earlier.
Close kontact

Moving the email filters (and a lot of other stuff)
A whole lot of configuration data, including your ISP details, passwords, mail filters etcetera is stored in the file old~/.kde/share/config/kmailrc, and when you have copied this file over, kmail will probably want to start working, collecting your mail and whatnot. If this is not what you want, unplug your internet connection now.

Copy the file old~/.kde/share/config/kmailrc to new~/.kde/share/config/kmailrc. Change owner:group as before.
Start up kontact.
Now everything should be where it should be.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
How can I move my Kmail emails to Outlook? coolgy768 Linux - Software 4 01-13-2009 04:34 AM
How to move kmail mails from one system to other? zulfilee Linux - Software 2 07-14-2005 07:32 AM
Kmail - how to get it to see old Kmail folders? pseudofilosofen SUSE / openSUSE 1 04-19-2005 05:52 AM
Kmail - how to get it to see old Kmail folders? pseudofilosofen SUSE / openSUSE 1 04-18-2005 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration