LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'find' command messed up 'kmail' (https://www.linuxquestions.org/questions/linux-newbie-8/find-command-messed-up-kmail-824730/)

Aquarius_Girl 08-07-2010 04:23 AM

'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 !!

sem007 08-07-2010 04:30 AM

Create that folder and set permission and then run kmail again

i not sure it will help you or not.

druuna 08-07-2010 04:32 AM

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.

Aquarius_Girl 08-07-2010 04:44 AM

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.

Aquarius_Girl 08-07-2010 04:47 AM

Quote:

Originally Posted by druuna (Post 4058636)
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 :banghead:

sem007 08-07-2010 04:53 AM

take a look

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

it might help you.

druuna 08-07-2010 05:07 AM

Quote:

Originally Posted by anishakaul (Post 4058641)
This article a posted on News section of LQ.

Can I not trust that even now :banghead:

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.

Aquarius_Girl 08-07-2010 06:09 AM

Quote:

Originally Posted by druuna (Post 4058651)
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.

druuna 08-07-2010 07:14 AM

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

Aquarius_Girl 08-07-2010 07:20 AM

Quote:

Originally Posted by druuna (Post 4058795)
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 ;)


All times are GMT -5. The time now is 05:26 AM.