Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

Recently my computer had to be hard-reset, and fsck ran on /home filesystem, producing lots of errors (old HDD drive).

After reset I don't see all my saved emails in KMail (KDE 3.5.3), at least those that were present in folder that was opened when computer crashed. The files are there physically in ~/Mail/folder/cur, but they are not visible in KMail component of Kontact.

The configuration files got damaged -- beside not seeing all saved emails, I have lost configuration of all my email accounts.

Is it possible to fix KMail configuration to make those saved emails visible again?

asked 03 Aug '11, 13:23

Jakub%20Nar%C4%99bski's gravatar image

Jakub Narębski
1112
accept rate: 0%




If you look at the KDE KMail page you see it stores email in mailbox format by default. At the bottom of that page, see "Other Tools and Patches", there's a configuration file excerpt that shows you how to mount a mailbox. So if for example you have a Gmail account with a mailbox called "Gmail.mbx" then its configuration part could read:

[Gmail]
Folder=~/Mail/folder/cur/Gmail.mbx
Name=Gmail
Type=local

Putting one and one together: 'chmod 0440' your existing mailboxes in ~/Mail/folder/cur/ to ensure they don't get changed by reconfiguration, in KMail configure your accounts and mailboxes, close KMail to save configuration and then check if its account and mailbox configuration matches what you have in ~/Mail/folder/cur/ (adjust configuration with a text editor). Run KMail and see if it opens the files.

* If it doesn't it could be the mailboxes were damaged. Check by running 'file ~/Mail/folder/cur/*' on the files. Magic should return something along the lines of "ASCII text" (not "data") and the files should be human readable using any command line or GUI editor or text viewer. If they aren't you've just found out why making backups is important.

link

answered 22 Nov '11, 08:45

unSpawn's gravatar image

unSpawn
811
accept rate: 28%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×7
×3

Asked: 03 Aug '11, 13:23

Seen: 4,381 times

Last updated: 22 Nov '11, 08:45

powered by OSQA