Re-Index KMail search

Hi,
what do I have to do to force KMail to reindex all mails?
Every time I search for a mail it claims that the mail account is not indexed. It offers to rebuild the index, but even after hours, nothing happens. That does not look right to me…
Thanks in advance!

It seems that, you have many e-Mails and/or many e-Mail folders.

If you right-click each e-Mail folder and select “Folder properties” and then select the right-most tab “Maintenance” ].
On this tab you’ll find an indexing option and, the capability to re-index only that folder.

You may have to go through each folder in turn and, either disable the indexing or, individually, folder for folder, re-index each folder in turn.

Well, I tried with a small folder first - just 320 Emails. After 10 minutes the Re-Index button was still greyed out. So there seems to be something broken.
What processes would I see in top if the re-indexer is running? Anything with baloo?

What version of kmail are you using?

For 5.x the process is called “akonadi_indexing_agent”.

With 4.x you would see a process called “akonadi_baloo_indexer”.
If that’s what you are using, check that baloo-pim is installed. It may have been replaced by akonadi-search, which doesn’t work with the KDE4 version (and vice-versa).

I’m using 5.3.2, as shipped with Leap 42.2. I can see the process, but even if I trigger a rebuild, it does not consume any CPU. Sounds strange…

Well, 4.14.10 is shipped with Leap 42.2 too… :wink:

I can see the process, but even if I trigger a rebuild, it does not consume any CPU. Sounds strange…

Try to delete the folders ~/.local/share/baloo/ and ~/.local/share/akonadi/search_db/ if they exist to force a reindex.