This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] Kmail not indexing email contents

Tags: None
(comma "," separated)
User avatar
richarson
Registered Member
Posts
47
Karma
0
OS
Hello all!

I've been using kmail for a year or so, and at some point I noticed that it or akonadi stoped indexing my emails, rendering seach useless.

This is an example of a folder's properties (sorry it's in spanish):

Image

No matter how many times I try to reindex it, it always shows 0 indexed items.

My questions:

How can I force a reindex?
Where does kmail/akonadi keeps those indexes? Is it ~/.local/share/akonadi/search_db/collections/?
Can I stop akonadi, delete the files in there, restart akonadi and retry the indexing?
Is baloo involved in the indexing (I excluded my mail folder from baloo)?

BTW, I have 14 GB of local mail, all from POP3 accounts (no IMAP accounts).

Thanks in advance!
--
kmail2 5.19.0 (21.12.0)
akonadictl 5.19.0 (21.12.0)

Operating System: Slackware 15.0 RC1
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3 (+ KDE patches)
Kernel Version: 5.15.7 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-1035G1 CPU @ 1.00GHz
Memory: 15.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics

Last edited by richarson on Sun Jan 16, 2022 3:15 pm, edited 1 time in total.
User avatar
richarson
Registered Member
Posts
47
Karma
0
OS
ambrosia wrote:just reset the index setting


Thank you for responding.

If you mean unchecking the box, saving and checking it again, unfortunately that doesn't make a difference.
Neither does pressing the reindex button (tested on several different folders).

I just restarted akonadi from a konsole and tried reindexing again and noticed the following:

Code: Select all
org.kde.pim.akonadi_search_pim: Failed to open database "/home/<user>/.local/share/baloo/email/" : "Expected block 187703 to be level 3, not 0"
org.kde.pim.akonadi_search_pim: Failed to open database "/home/<user>/.local/share/baloo/email/" : "Expected block 187703 to be level 3, not 0"


I hadn't checked ~/.local/share/baloo/email/ before, I see these files in there:

Code: Select all
total 7890312
-rw-r--r-- 1 <user> <user>       95879168 jul 26 16:16 docdata.glass
-rw-r--r-- 1 <user> <user>              0 dic 16 15:11 flintlock
-rw-r--r-- 1 <user> <user>            174 jul 26 16:11 iamglass
-rw-r--r-- 1 <user> <user>           8192 may 22  2021 position.glass
-rw-r--r-- 1 <user> <user>     4037312512 jul 26 16:12 postlist.glass
-rw-r--r-- 1 <user> <user>           8192 may 22  2021 spelling.glass
-rw-r--r-- 1 <user> <user>           8192 may 22  2021 synonym.glass
-rw-r--r-- 1 <user> <user> 17395169427456 jul 26 16:12 termlist.glass


I can try moving those files somewhere else and restarting akonadi+baloo.
User avatar
richarson
Registered Member
Posts
47
Karma
0
OS
FWIW and so it gets at least documented here:

I stopped kmail, akonadi and baloo, then removed the files from ~/.local/share/baloo/email/, started akonadi, baloo and kmail, and my emails' content is being indexed again!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]