LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-26-2003, 06:31 PM   #1
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Rep: Reputation: 31
kmail - What files does it use?


I would like to clean up my home folder, but want to copy over all the kmail stuff so that I still have my old messages, e-mail account details and filters stored.

I have found that Kmail uses a directory at ~/mail/ to keep all my messages in. I cannot figure out where the e-mail account details or the filters are stored. It would not take me long to retype my e-mail accounts, but the filters would take hours if not days. Can anyone tell me where all this data is kept?

DAVE
 
Old 10-26-2003, 11:03 PM   #2
emetib
Member
 
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
whereis kmail

that will tell you where it's running from. i'm not sure if all of your filters are there or not.

cheers.
 
Old 10-27-2003, 02:51 AM   #3
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Programs store their settings in hidden directories.

Maybe this gives you a clue
Code:
find ~/.kde/share/ -iname '*kmail*'
To see *all* files in a directory, type
Code:
ls -a
 
Old 10-27-2003, 01:44 PM   #4
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Original Poster
Rep: Reputation: 31
Thanks, all, you helped me find the filters and account/password details in:

~/.kde/share/config/kmailrc

I can't believe I didn't look in ~/.kde/share/config/ I found stuff in there before!

DAVE
 
Old 10-27-2003, 03:32 PM   #5
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
just make a backup before you do your housekeeping

Code:
tar zcvf backup.tar.gz ~
And don't use ~/*, because this will omit all hidden dot-files.

btw, my Mail folder seams to contain some hidden files too; they are probably the settings+indexes of those folders. (and settings like appearance in kmail)
 
Old 10-28-2003, 02:12 PM   #6
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Original Poster
Rep: Reputation: 31
What I did last time was to log in to KDE as root, rename my home directory and create a new one. Then I dragged the old, renamed one into the new one as a subdirectory, and used "properties" to make sure my regular ID was still the owner. I then dragged across all the settings I wanted to keep. Crude but effective, but I just couldn't find the Kmail stuff!

I always have Konqueror enabled to show hidden files! Shame I can't do this in the Directories panel. Or can I?

DAVE
 
Old 10-29-2003, 07:38 AM   #7
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
just my $0.02:

don't absolutely don't ever work as root in your X desktop.
Maybe it was easy to drag a home folder, but nothing prevents you from dragging a dev folder. If linux ever gets spyware, viruses, or a bug in your browser is exploited, nothing will stop the software from hurting your system. (you'll have the security of an Windows 9x system!)

Rather try this in a konsole window:

Code:
su
<enter root password>
mkdir /backup
mv /home/yourname /backup
mkdir /home/yourname
chown yourname:users /backup
chmod 711 /home/yourname
(or chmod go-rw /home/yourname)
that would do the same too
as root, I've made certain other data folders where users could store files, like downloads and multimedia files. This shared folder created with:
Code:
mkdir /data/
chmod go+w /data/
chmod +t /data
this allows everyone to write into the /data/ folder, but not remove each others files.


btw, I'd keep the hidden files hidden at Linux (and visible at Microsoft Windows). they are different worlds with different rules/practices.

Last edited by yapp; 10-29-2003 at 07:40 AM.
 
Old 10-29-2003, 07:44 AM   #8
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
about hardening your home directory:

try to find the large files with
Code:
du -k
there is no need to clean up really everything, but keep your internet+thumbnail cache small..

and this command might be usefull too, it displays a summary of every hidden directory in kB.
Code:
du -ks .[^.]*
 
Old 10-29-2003, 04:40 PM   #9
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Original Poster
Rep: Reputation: 31
What did I start?

Seriously, I went into KDE as root, to work on my home files then exited out again. Total time about 3 minutes!

Anyways, I keep /home on a seperate partition and regularly back up my main partition using partimage, onto a file on my Windows drive (yup it has a use!). I am not a reckless person, ask the wife!

DAVE
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kmail ' Connection to host broken ' with large files from Gmail vangelis Linux - Software 0 10-22-2005 07:11 AM
Backing up kMail emails+config files ? OneManArmy Linux - Newbie 1 03-31-2005 09:26 AM
Moving Kmail files to new drive linuxian Mandriva 0 08-13-2004 04:57 AM
Backing up KMail files artemis Linux - Newbie 2 03-02-2003 02:58 AM
Where is Kmail config files toolshed Linux - General 5 08-13-2001 08:30 AM


All times are GMT -5. The time now is 07:12 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration