Bug 290142 - kmail search doesn't work
Summary: kmail search doesn't work
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.8
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 01:19 UTC by Hussam Al-Tayeb
Modified: 2012-06-21 11:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
serching is turned on, but kmail thinks it's turned off (149.64 KB, image/png)
2012-03-07 02:50 UTC, Andrew Gaydenko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hussam Al-Tayeb 2011-12-30 01:19:54 UTC
Version:           4.8 (using Devel) 
OS:                Linux

kmail search doesn't work. I'm not sure what the correct product/component to file this bug against. But here goes. I tried some troubleshooting to see where the bug is. I started a new user and imported my old emails.
kmail search won't find anything when I query a search.

I opened akonadiconsole and deleted the akonadi nepomuk feeder and added it again. the folders Junk, archlinux and drags are empty. it seems to stop at clementine folder. 

I get the following in a terminal:

akonadi_nepomuk_feeder(15594)/nepomuk (library) {anonymous}::GlobalModelContainer::init: Connecting to local socket "/tmp/ksocket-hussam/nepomuk-socket"
akonadi_nepomuk_feeder(15594) XSyncBasedPoller::XSyncBasedPoller: 3 1
akonadi_nepomuk_feeder(15594) XSyncBasedPoller::XSyncBasedPoller: XSync seems available and ready
akonadi_nepomuk_feeder(15594) XSyncBasedPoller::setUpPoller: XSync Inited
akonadi_nepomuk_feeder(15594) XSyncBasedPoller::setUpPoller: Supported, init completed
akonadi_nepomuk_feeder(15594) Akonadi::NepomukFeederAgent::NepomukFeederAgent: DisableIdleDetection:  false
akonadi_nepomuk_feeder(15594) FeederQueue::continueIndexing:
Known subscriber "akonadi_nepomuk_feeder" subscribes again 
akonadi_nepomuk_feeder(15594) FeederQueue::continueIndexing:
Database "akonadi" opened using driver "QMYSQL" 
akonadi_nepomuk_feeder(15594) FeederQueue::processNextCollection: Indexing collection "Junk"
akonadi_nepomuk_feeder(15594) FeederQueue::processNextCollection: Indexing collection "drafts"
akonadi_nepomuk_feeder(15594) FeederQueue::processNextCollection: Indexing collection "ArchLinux"
akonadi_nepomuk_feeder(15594) FeederQueue::processNextCollection: Indexing collection "Clementine"
akonadi_nepomuk_feeder(15594) FeederQueue::itemHeadersReceived: 3
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_mail.desktop" for ("message/rfc822", "message/news", "text/x-vnd.akonadi.note") @ ("legacy", "default", "KMime::Message*")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_microblog.desktop" for ("application/x-vnd.kde.microblog") @ ("legacy", "default", "Microblog::StatusItem")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_kcal.desktop" for ("text/calendar", "application/x-vnd.akonadi.note", "application/x-vnd.kde.notes") @ ("legacy", "KCal::Incidence*")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_kalarm.desktop" for ("application/x-vnd.kde.alarm", "application/x-vnd.kde.alarm.active", "application/x-vnd.kde.alarm.archived", "application/x-vnd.kde.alarm.template") @ ("default", "KAlarmCal::KAEvent")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop" for ("text/calendar", "application/x-vnd.akonadi.note", "application/x-vnd.kde.notes") @ ("default", "KCalCore::Incidence*")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_bookmark.desktop" for ("application/x-xbel") @ ("legacy", "default", "KBookmark")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_addressee.desktop" for ("text/vcard", "text/directory") @ ("legacy", "default", "KABC::Addressee")
akonadi_nepomuk_feeder(15594)/libkdepim Akonadi::PluginLoader::scan: registering Desktop file "/usr/share/apps/akonadi/plugins/serializer/akonadi_serializer_contactgroup.desktop" for ("application/x-vnd.kde.contactgroup") @ ("legacy", "default", "KABC::ContactGroup")
akonadi_nepomuk_feeder(15594)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kdecache-hussam/ksycoca4"
akonadi_nepomuk_feeder(15594)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "message/rfc822" ,  "AkonadiNepomukFeeder"  : returning  1  offers
akonadi_nepomuk_feeder(15594) FeederPluginloader::feederPluginsForMimeType: created new plugin
akonadi_nepomuk_feeder(15594) ItemQueue::continueProcessing: indexing completed
akonadi_nepomuk_feeder(15594) FeederQueue::processNextCollection: Indexing collection "FreeDesktop"
akonadi_nepomuk_feeder(15594)/kdecore (trader) KMimeTypeTrader::query: query for mimeType  "inode/directory" ,  "AkonadiNepomukFeeder"  : returning  0  offers
akonadi_nepomuk_feeder(15594) FeederPluginloader::feederPluginsForMimeType: No feeder for type  "inode/directory"  found 
akonadi_nepomuk_feeder(15594) FeederQueue::itemHeadersReceived: 4
akonadi_nepomuk_feeder(15594) FeederQueue::processItemQueue: not Online, stopping processing



so I deleted the contents of clementine folder and just hangs on next folder.

Reproducible: Always

Steps to Reproduce:
open kmail, click search and enter a search query


Expected Results:  
kmail search should show valid results.
Comment 1 Hussam Al-Tayeb 2011-12-30 01:21:39 UTC
If I run a search, I get the following in a terminal.
AgentManager::removeSearch 51 
Database "akonadi" opened using driver "QMYSQL" 
AgentManager::addSearch "select distinct ?r ?reqProp1 (bif:concat(bif:search_excerpt(bif:vector('clementine'), ?v2))) as ?_n_f_t_m_ex_ where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v2 . FILTER(bif:contains(?v2, "'clementine'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . ?r <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> ?v1 . FILTER(?v1>0) . }" "SPARQL" 51
Comment 2 Hussam Al-Tayeb 2011-12-30 01:28:23 UTC
so the cause of the bug is 
FeederPluginloader::feederPluginsForMimeType: No feeder for type  "inode/directory"  found 
?
Comment 3 Christophe Marin 2012-01-28 17:02:08 UTC
Please retry with akonadi >= 1.7.0
Comment 4 Hussam Al-Tayeb 2012-03-07 02:38:36 UTC
seems to work now so I will close as works for me.
Comment 5 Andrew Gaydenko 2012-03-07 02:50:37 UTC
Created attachment 69338 [details]
serching is turned on, but kmail thinks it's turned off

Closing? Now searching even doesn't start :-)
Comment 6 Hussam Al-Tayeb 2012-03-07 03:03:24 UTC
reopened.
Comment 7 Christian Mollekopf 2012-06-21 11:10:36 UTC
The searching itself has been fixed in the upcomping 4.9 release together with the latest released akonadi 1.7.90. As to your problem, it looks like the feeder is not set online (you can check that in akonadiconsole), also make sure that indexing is enabled in Settings -> Desktop Search -> Enable Email Indexer