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

Remove indexed mails from Nepomuk index

Tags: None
(comma "," separated)
Litt Le Cuba
Registered Member
Posts
2
Karma
0
OS
Hello KDE forums,

I had email indexing enabled for a while but then decided that I would not need it (additionally it 'pollutes' my krunner search results). Now I want to remove selectively mails from the nepomuk index. Does anybody know if that is possible?

Best regards.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
As far as I am aware, it isn't possible to do this with any of the tools included with Nepomuk unfortunately.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Litt Le Cuba
Registered Member
Posts
2
Karma
0
OS
So, what would be my alternative?
Code: Select all
qdbus org.kde.NepomukServer /nepomukserver quit
rm -rf ~/$(kde4-config --localprefix)/share/apps/nepomuk/*

did not work for me, krunner still shows emails in the search results.
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS
Litt Le Cuba wrote:So, what would be my alternative?
Code: Select all
qdbus org.kde.NepomukServer /nepomukserver quit
rm -rf ~/$(kde4-config --localprefix)/share/apps/nepomuk/*

did not work for me, krunner still shows emails in the search results.

Command it's not right, the right steps to start with a fresh database are:

1) Stop Nepomuk.
2) Execute next command in console:
Code: Select all
rm -rf $(kde4-config --localprefix)share/apps/nepomuk/
3) Start Nepomuk.

But, there is an alternative to delete all data related to one agent (application) maintaining the rest of your data:
Code: Select all
qdbus org.kde.NepomukStorage /datamanagement org.kde.nepomuk.DataManagement.removeDataByApplication 0 "$AGENT"
$AGENT must be the name of the agent but I don't know what it's the name, or names, used by akonadi. If you have installed Nepoogle next search will show all your agents:
Code: Select all
type:agent
And you must use the Identifier with dbus call.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

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