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-07-2010, 05:23 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
'find' command messed up 'kmail'


OpenSuse 11.2

I followed this from LXer article:
Quote:
Remove empty folders

The find command can display all the empty folders in your Home directory.

find ~/ -type d -empty

To find and remove the empty folders in your Home directory, run the following command:

Important: Never run the find and remove command in root directory. Some of the empty folders are there for a purpose. Removing them might cause system instability

find ~/ -type d -empty -exec rmdir {} \;
I ran the above two find commands as a normal user.

Now when I open Kmail, it says:
Quote:
Error opening /home/anisha/.kde4/share/apps/kmail/mail/inbox/new; this folder is missing.
Help !! Help !!

Last edited by TheIndependentAquarius; 08-07-2010 at 05:27 AM.
 
Old 08-07-2010, 05:30 AM   #2
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
Create that folder and set permission and then run kmail again

i not sure it will help you or not.
 
1 members found this post helpful.
Old 08-07-2010, 05:32 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

You just found out the hard way that an empty folder isn't necessarily a useless folder....

Can't you recreate the folder: mkdir -p /home/anisha/.kde4/share/apps/kmail/mail/inbox/new? I'm not sure if the permissions will be correct, but you might have another user with the same dir structure you can look at.

Hope this helps.
 
1 members found this post helpful.
Old 08-07-2010, 05:44 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Thanks to sem007 as well as druuna.

Your suggestions worked. I created a new and a tmp folder with the appropriate permissions in the following folders:
'inbox'
'sent-mail'
'drafts'
'trash'

and now I am able to start Kmail.

But when I tried to delete a mail, it said
Quote:
KMail encountered a fatal error and will terminate now.
The error was:
Message could not be added to the folder, possibly disk space is low.
I am sure there is no space problem but something else which is causing this error.

Kindly help.
 
Old 08-07-2010, 05:47 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by druuna View Post
Hi,
You just found out the hard way that an empty folder isn't necessarily a useless folder....
This article is posted on News section of LQ.

Can I not trust that even now

Last edited by TheIndependentAquarius; 08-07-2010 at 08:28 AM. Reason: typo
 
Old 08-07-2010, 05:53 AM   #6
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 111Reputation: 111
take a look

http://readlist.com/lists/suse.com/s.../12/62615.html

it might help you.
 
Old 08-07-2010, 06:07 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Quote:
Originally Posted by anishakaul View Post
This article a posted on News section of LQ.

Can I not trust that even now
Short answer: No. The article should have mentioned that certain folders can be empty but still need to be there.

In the case of the new folder: New mail is picked up and placed in the new folder. You open your mailer, read the mail and move or delete it. End result: A legitimate empty new folder.

I'm not a kmail user and can only give you some pointers:
- did you restart kmail after fiddling with the dir structure,
- re-check if all dirs are present and have the correct permissions,

Hope this helps.
 
1 members found this post helpful.
Old 08-07-2010, 07:09 AM   #8
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by druuna View Post
Short answer: No. The article should have mentioned that certain folders can be empty but still need to be there.
I think it is my fault. The article is for Ubuntu not for Suse. Ubuntu doesn't use Kmail, it uses evolution.

And I have Evolution also installed on my system and it has not been effected by that 'find' command. I can start it properly.
 
Old 08-07-2010, 08:14 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

I noticed that the article is Ubuntu specific, but I still think it should have mentioned the existence of legitimate empty folders in case someone uses the find command for other purposes then mentioned in the article. They do mention that you should not run this from the root dir (/), a small addition to that would have been nice.

Don't know if you solved your kmail problem, but maybe this will help: The KMail Handbook
 
Old 08-07-2010, 08:20 AM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by druuna View Post
Don't know if you solved your kmail problem, but maybe this will help: The KMail Handbook
Thanks for replying,

I didn't solve my problem yet because it needs a reboot, I am in middle of some work right now.

I'll look in the handbook and see if it helps.
Thanks again.

I am thinking of writing a review on that article in LXer

Last edited by TheIndependentAquarius; 08-07-2010 at 08:43 AM.
 
  


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
I can`t find kmail riverplate Linux - Software 2 06-04-2007 11:06 PM
KMail can't find addresses... Groff142 Linux - Software 0 05-03-2006 07:38 PM
permissions messed up chown command used tsayles21 Debian 3 03-30-2004 09:38 PM
KMail messed up KDE Bruce Hill Linux - Newbie 4 10-25-2003 12:05 PM
kmail command line options randyasu Linux - Software 10 09-30-2003 04:02 AM


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