Bug 321763

Summary: searching in kmail does not work - find nothing or too few mails
Product: [Applications] kmail2 Reporter: Martin Koller <kollix>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: montel
Priority: NOR    
Version: 4.10.4   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Martin Koller 2013-06-29 13:05:20 UTC
I want to search my sent mail folder (maildir) for my own name "Martin" in the complete message.
Before this I checked the indexing status of the folder and manually clicked "reindex now" and waited until the properties dialog told me it was reindexed today (I had to start the "index now" two times - waited 10 minutes in between and checked that the CPU was already 0%).

So now with the correct status of "...was indexed ... today" it finds ONE message of about 10000 in that folder !
When I try to find "Re:" in Subject it find NO SINGLE mail. If I simply type "Re:" in the message list filter field, the filtered message list contains hundreds or thousands of mails.

Reproducible: Always
Comment 1 Laurent Montel 2013-08-17 07:29:40 UTC
We need query to know what is the pb
There is a qdebug in 4.11 and a dialog box in 4.12
Comment 2 Martin Koller 2013-08-17 21:06:18 UTC
I have now my sent-mail folder open and did a search via the filter line above the message list (searching for "Re:") and also "the same" search in the find window (subject contains "Re:").
Here are the queries:

[~]# qdbus org.kde.nepomuk.services.nepomukqueryservice /nepomukqueryservice/query486 queryString
select distinct ?r ?reqProp1 where { { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . ?r <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf> <nepomuk:/res/14cb1500-07b0-4d41-b0a0-23b7213a8f1a> . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#messageSubject> ?v1 . FILTER(bif:contains(?v1, "'Re:'")) . ?r a <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#Email> . } . }
[~]# qdbus org.kde.nepomuk.services.nepomukqueryservice /nepomukqueryservice/query487 queryString
select distinct ?r ?reqProp1 where { { ?r <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf> <nepomuk:/res/14cb1500-07b0-4d41-b0a0-23b7213a8f1a> . ?r <http://www.semanticdesktop.org/ontologies/2007/03/22/nmo#plainTextMessageContent> ?v1 . FILTER(bif:contains(?v1, "'Re:'")) . OPTIONAL { ?r <http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?reqProp1 . } } . }
Comment 3 Martin Koller 2013-08-17 21:08:46 UTC
Ah yes, the result: The find window found 28 matches, and in the message list I have hundreds...
Comment 4 Martin Koller 2014-03-22 09:43:48 UTC
closing as I now hope Baloo solves it.