LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-16-2008, 12:20 AM   #1
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Rep: Reputation: 15
Kmail in Mandriva


Hi,
I have just upgraded from Mandrake 10 to Mandriva 2008.
I have a question about transferring the mail content, from Kmail Rev. 0.8 (from Mandrake 10) to Kmail 1.9.7 (Mandriva).
It used to be a hidden file, called ".Mail" with all emails in it.
I don't see it in Madriva.
Does anybody know where it is and, if it's a different structure, how to transfer the mail? I have that ".Mail" file backed-up on a disk but I don't see a place for it.
thanks
 
Old 03-16-2008, 12:56 AM   #2
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
It was moved to /home/username/.kde/share/apps/kmail

But you don't want to copy .Mail to kmail, but the content within .Mail into kmail

Hope this helps.

Last edited by wildar; 03-16-2008 at 12:58 AM.
 
Old 03-16-2008, 07:35 AM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
My procedure for moving mail to a new distro:

Find your old mail (usually easy enough!)
Start kmail at least once on the new distro, for the default directories to be created.

Close kmail.
Navigate to ~/.kde/share/apps/kmail/mail
Select View ... Show hidden files in Konqueror.
If you see any .*index* files, delete them all.
Now, move your old mail directories into ~/.kde/share/apps/kmail/mail but do not copy any of the .*index* files from the old distro.

Now, start kmail
It will start slowly if you have a lot of mail, with a lot of disk activity, because all the index files need to be re-created.
Then all should be well

Your old address book can be exported from your old distro, and imported into the new one.
I have found moving my kmail mail-filter rules between different distros to be much more difficult, and have always had to recreate them manually
 
Old 03-16-2008, 11:26 AM   #4
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
It worked. I can see the mail content now.
There is one problem with it though:
I can see the old emails but when I click on them they turn into "unknown sender, unknown date of arrival and no subject" and there is no content.
Am I missing some steps here?

thanks
 
Old 03-16-2008, 11:53 AM   #5
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Interesting.

I have been using kmail since Mandrake 7.2. I currently am at Mandriva 2008. I have upgraded along the way (never reinstalled). My mail is still in ~/.Mail.

I wouldn't move the mail; I would simply symlink from the new location to the old .Mail directory. Or else configure kmail to look for its mail there. Lots easier and bound to be fewer problems.

You can configure this for kmail by editing ~/.kde/share/config/kmailrc and under the General section locate the line folders= and make sure it says folders=$HOME/.Mail .
 
Old 03-16-2008, 01:48 PM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
@zebra90210
Quote:
when I click on them they turn into "unknown sender, unknown date of arrival and no subject" and there is no content.
This is weird. I never experienced this. Are your mails in Mbox (some big files, each with many emails in it) or Mdir (Directories, containing many, small, individual email files) format? Mine are the latter. Not that it should matter.
Just a thought - you did copy the mail files, NOT the index files? And you DID delete all the (hidden) index files (on your new system) before you copied your mail over?

I recently got an Asus eee PC701, and in setting up kmail on that I accidentally downloaded all my mail from my ISP's server. Normally my mobile PCs leave mail on my ISPs server, so ALL my incoming emails eventually end up on my email PC (which does delete downloaded mails from my ISPs server).

I basically followed the above procedure to merge the new emails on my eee with the ones on the server. Result: No mail lost, or in the wrong place, but I did have to click on each mailbox (Inbox, Outbox, Family, Work, Purchases etc.) in turn for the "Total" and "Unread" columns to be populated correctly. Thereafter, no problems.

@jiml8
Quote:
I have been using kmail since Mandrake 7.2. I currently am at Mandriva 2008. I have upgraded along the way (never reinstalled). My mail is still in ~/.Mail.
I am amazed. But perhaps that is what you get for sticking with one distro, and upgrading along the way?

@Both of you:

I'm not sure what the "correct" answer is
zebra90210 should perhaps make a backup of his Mail/* somewhere before he points his (newer) version of kmail at the old mail (by making a link or changing config files, as jiml8 says). The last time I looked into it, kmail was writing quite a lot of stuff about which version was used to access mail the last time to the config files. Maybe it is clever enough to sort things out for you??

I am interested to hear how you manage to get things worked out. There is precious little documentation for "Moving my mail to another distro / version of kmail"!
 
Old 03-16-2008, 02:33 PM   #7
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
that worked. Thanks!
 
Old 03-16-2008, 02:47 PM   #8
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
that worked. Thanks!
Well, that's good

But, please tell us exactly what didn't work before, but does now.

Was my /our explanation incorrect?
Did you misunderstand something?
Exactly what did you do to make it all "work"? Make a link? Delete index files? Copy mail? Change the config files? Restart kmail one more time?

Please describe your exact steps as though you were taking to a "newbie". That way, others, searching for this thread are likely to find the answer they need, without further input from any of us. Happiness all round

Please do it now, before you forget (and have to say something useless like "I clicked on something and then, well, you know, it, like just worked" )

We have helped you solve your problem, so it's only fair that you share the solution
 
Old 03-16-2008, 05:46 PM   #9
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by zebra90210 View Post
that worked. Thanks!
what "that" worked?
 
Old 03-16-2008, 09:12 PM   #10
zebra90210
Member
 
Registered: Aug 2003
Location: Chicago suburbs
Distribution: Kubuntu
Posts: 96

Original Poster
Rep: Reputation: 15
well, finally I used the original advice given by tredegar.
I opened the new Kmail. It generated the new inbox folder in ~/.kde/share/apps/kmail/mail
I had to close the Kmail, go to that directory and delete all index files.
Then, I copied all individual inbox folders (I have separate folders for approx. 15 people I write with), ONE FOLDER AT THE TIME, from my backup DVD. That did it. I have access to all my old email and nothing turns into "unknown sender". Woohoo! thanks guys!

Last edited by zebra90210; 03-16-2008 at 09:40 PM.
 
  


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 import old PC KMail files into new KMail engineerwell Linux - General 1 03-11-2006 05:20 PM
Cannot import old PC KMail files into new KMail engineerwell Linux - General 1 03-11-2006 05:21 AM
mandriva 2006/thunderbird/kmail/kpilot and treo 650 bigjohn Linux - Software 0 01-29-2006 06:35 PM
solved KMail could not create folder '$HOME/Mail' after regression mandriva 2006 2005 Emmanuel_uk Linux - Software 0 01-10-2006 04:44 PM
Transferring Kmail messages from Mandriva Kia ora Ubuntu 0 08-02-2005 05:39 AM

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

All times are GMT -5. The time now is 01:39 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