LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-10-2009, 11:30 AM   #1
Kapten Beard
LQ Newbie
 
Registered: May 2009
Location: Siros island, Greece
Distribution: openSUSE 13.1 64-bit
Posts: 8

Rep: Reputation: 0
Unhappy Recover kmail mails from trash


Greetings.

I made a mistake and deleted my kmail (~.kde4/share/apps/kmail/mail) yesterday

Now, I lost many mails. I managed to recover most of it, but the inbox folder is empty. I can find nothing in the inbox in the trash. Is there a way to recover the mails?

Thank you.


openSUSE 11.1
KDE 4.2.4
KMail 1.11.4
 
Old 08-10-2009, 01:40 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
I'm still using KDE3

But try this:

Close kmail

Navigate to ~.kde4/share/apps/kmail/mail

Make sure you can see the "hidden" files that begin with a "dot" or "period".
["View ... Show Hidden files" usually]

Delete all the .MailDirName.Index.* files

Restart kmail

It will be slow to open as the indexes are rebuilt. May take 10's of minutes if you have 1000's of emails.

Any better?

And Welcome to LQ!

Last edited by tredegar; 08-10-2009 at 01:42 PM.
 
Old 08-11-2009, 11:06 AM   #3
Kapten Beard
LQ Newbie
 
Registered: May 2009
Location: Siros island, Greece
Distribution: openSUSE 13.1 64-bit
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you for the reply tredegar.

I did not describe the problem well. After I deleted the folder, T did a reboot. KDE settings reverted to the originals. I managed (after some search) to restore most of the settings (plus custom folders) by copying files from the Trash. The folder in trash:/0-.kde4/share/apps/kmail/mail does not have any hidden files. The inbox folder (trash:/0-.kde4/share/apps/kmail/mail/inbox) is empty as well. So while I can find the folders you describe in my ~/.kde4/share/apps/kmail/mail, I cannot find the hidden files in the Trash.

Is there a command line way of seeing hidden files in the Trash?


EDIT: I forgot to mention that Kmail was used as part of Kontact 1.4.4


Regards,

Kapten Beard

Last edited by Kapten Beard; 08-11-2009 at 11:09 AM. Reason: Add more information
 
Old 08-11-2009, 11:29 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Ok, I understand better now.

I am not using KDE4, and not sure where it keeps "Trash" but it might be
/home/kapten/.local/share/Trash

so you could try
Code:
cd /home/kapten/.local/share/Trash
ls -a
To see the hidden files in Trash

Kmail may be very different in KDE4.

In my /home/tred/.kde/share/apps/kmail/mail/inbox directory I have three further directories cur tmp and new

Read mail is kept in the new directory and mail messages have names like
1234567890.6633.apJ6H:2,S

Please don't do any more reboots until you are sure your email is not recoverable (although it might be too late, now that you have already rebooted).

Perhaps it would be wise to copy all of trash to somewhere "safer" like /home/kapten/LostStuff before some "tidying up" process comes along and empties your "trash". Then you can reboot as much as you like.
 
Old 08-12-2009, 11:06 AM   #5
Kapten Beard
LQ Newbie
 
Registered: May 2009
Location: Siros island, Greece
Distribution: openSUSE 13.1 64-bit
Posts: 8

Original Poster
Rep: Reputation: 0
No, I cannot find my mails. Look like O learned a lesson the hard way now. :|

Ah well, I'll be more careful from now on.


Thank you for the replies friend.
 
  


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
INFORMATION!!!!! rm will move deleted data to Trash.........For future recover farrukhndm Linux - Server 5 09-01-2008 01:57 PM
I Cant Recive My E-Mails With KMail (kontact) What i have to do??? farzadfedora Ubuntu 3 05-27-2008 05:57 PM
Recover Trash in KDE Cornholio Linux - General 6 01-02-2007 02:58 AM
How to move kmail mails from one system to other? zulfilee Linux - Software 2 07-14-2005 08:32 AM
How To Recover Trash Bin Mic Q SUSE / openSUSE 2 03-31-2005 05:08 AM


All times are GMT -5. The time now is 12:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration