Bug 321763 - searching in kmail does not work - find nothing or too few mails
Summary: searching in kmail does not work - find nothing or too few mails
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.10.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 13:05 UTC by Martin Koller
Modified: 2014-03-22 09:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.