LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-19-2004, 01:56 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,028

Rep: Reputation: 45
Question backup emails =>kmail problem


Yesterday.. I was searching for a bakcup command in the kmail mail client... So.. do u know how i can backup my email using kmail... and then import them again?? I must do the above due to a format procedure which must take place...Thx a lot
 
Old 09-19-2004, 04:38 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,623
Blog Entries: 10

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
KMail doesn't have that kind of feature.

But you can easily backup the relevant files
and it will work just dandy after a restore.

backup:
Code:
tar cvzf kmail.tar.gz ~/Mail ~/.kde/share/config/kmail*
After the format and with the new user account already
created, logged in as that user:

restore:
Code:
tar xvzf /path/to/kmail.tar.gz -C ~
If the user happens to have a different numerical
user-id after the re-install you'll need to do this
as root:
Code:
chown -R <username>:<usergroup> /home/<username>

Cheers,
Tink
 
Old 09-19-2004, 06:26 PM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,028

Original Poster
Rep: Reputation: 45
thx

thx for your answer....Are u sure that is going to work properly? Have u ever tried it?
 
Old 09-19-2004, 06:30 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,623
Blog Entries: 10

Rep: Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773Reputation: 773
Repeatedly - OK, only twice :}

You could always try whether it works by doing
the taring and creating a NEW user on your machine,
and untar into his directory and see whether it
works for you. Maybe disconnect from the net
on first run so it doesn't download mails in the
wrong users directory accidentally.


Cheers,
Tink
 
Old 09-20-2004, 12:48 AM   #5
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,028

Original Poster
Rep: Reputation: 45
thx

thx a lot.... Have a nice day
 
Old 01-05-2009, 03:03 PM   #6
moonshadow
LQ Newbie
 
Registered: Jan 2009
Location: Sweden
Distribution: openSUSE, Slackware
Posts: 6

Rep: Reputation: 0
backup and restore encrypted emails in kmail, need encyption key?

I have a similar situation as the original writer, but my emails are encrypted. As I remember it, I never created an encryption key, I just ticked a box saying something about encrypting the messages stored on the computer. The only passwords I ever type is for fetching new emails from the mailservers. How do I make sure I can read them after restoring the backup?

Thanks
 
Old 01-06-2009, 01:45 PM   #7
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
I just ticked a box saying something about encrypting the messages stored on the computer. The only passwords I ever type is for fetching new emails from the mailservers. How do I make sure I can read them after restoring the backup?
I hate to say this, but you might nearly be in big, big trouble.

The only way to be sure you can restore from a "backup" is to try it.

My original backup strategies were bad, but I didn't realise this.
One day I was bored and thought I'd test my strategy. It (eventually) worked, but was a PITA. My backup strategy is better now:

- Backup all of /home however you like (as files with rsync, as a tarball, whatever). Do this to an external device that can be completely disconnected from your PC Eg a USB / Firewire HDD.

- Do this regularly, depending on how much you'd not care losing.

- Now and again, as root, unmount /home or mount an empty but formatted partition on top of /home and then see if you can restore it from your backup. It is best to disconnect the internet whilst you are doing this, as otherwise emails may arrive, and end up in the "wrong" place.

- I occasionally backup my OS, but usually only before I attempt something very adventurous - the OS (linux) is easily restored, probably to a more up to date distro, but the most important backup is your personal data. That cannot be re-installed.

Let's face it: if you had a catastrophic failure, regaining internet connectivity would be your last thought. First would be "Where are my personal files?"
 
Old 01-08-2009, 09:17 AM   #8
moonshadow
LQ Newbie
 
Registered: Jan 2009
Location: Sweden
Distribution: openSUSE, Slackware
Posts: 6

Rep: Reputation: 0
Thank you, I'll try that (but it will have to wait a while)
 
Old 01-11-2009, 05:06 PM   #9
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 51

Rep: Reputation: 16
Kmail seems to encrypt regardless I don't recall any tick box. It doesn't like not using Kwallet if installed. Which might be part of encryption. I don't think that restoring to different user will work, I changed disto/user and the earlier emails are not openable.
It was some time ago and cannot recall exactly what happened.

I have a query Kmail "compacts" --compresses? emails how does that affect the backup/restore.

Is there any way of stoping it "compacting"? Can any program "uncompact" and save as plain text.

For instance you get message "sucessfully compacted inbox" -- inbox might have 2 short emails in it. Why bother.
 
Old 01-22-2009, 03:01 PM   #10
moonshadow
LQ Newbie
 
Registered: Jan 2009
Location: Sweden
Distribution: openSUSE, Slackware
Posts: 6

Rep: Reputation: 0
Copying as plaintext

I found a quite simple way to save the emails as plain text: click a folder, select (all) messages, right click and select "Save as..". As default it is saved as an .mbox-file, and reading it in a textfile-viewer worked fine (except for the swedish characters, but I guess that can be fixed with character encoding).
 
  


Reply

Tags
kmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't get Kmail to diplay HTML emails Stevetgn Linux - Software 1 06-10-2005 06:40 PM
old emails in kmail unreadable ¨No Subject¨ bobinglis Linux - General 2 05-07-2005 07:18 PM
Viewing emails in KMail aikidoist72 Linux - Software 2 03-10-2005 08:33 PM
Kmail doesn't allow gpg encrypted emails steve1401 Debian 5 02-07-2005 05:07 PM
Will Kmail auto check for emails? Stevetgn Linux - Software 2 01-05-2005 06:57 AM


All times are GMT -5. The time now is 03:13 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration