Manipulating local maildir

Alex Schuster wonko at
Sat Feb 12 09:48:57 GMT 2011

Kevin Krammer writes:

> On Friday, 2011-02-11, Alex Schuster wrote:

> > There are some scripts that will do this. But here's my question: Would
> > it be safe to change things in .kde4/share/apps/kmail/mail/? Or could
> > I mess up some Kmail / Akonadi databases by doing so? Will hell break
> > loose?
> Don't manipulate files in KMail's data directories when KMail is running.

Sounds reasonable.

> If KMail is not running, modifications to mail files should make the
> respective KMail index invalid (it will then have an older modification
> timestamp than one of the maildir directories).

Is this bad?

> Or you remove the KMail index file for the mail folder that you have
> manipulated with an external tool

Okay. Quit Kmail, remove .kde4/share/apps/kmail/mail/.myfolder.index, 
manipulate .kde4/share/apps/kmail/mail/myfolder, and start Kmail again. 
Which will detect that the index is gone and re-generate it.


This message is from the kde mailing list.
Account management:
More info:

More information about the kde mailing list