[Bug 247229] gpg key search allways empty result

Martin Albrecht martinralbrecht at googlemail.com
Mon Aug 23 20:15:39 BST 2010


https://bugs.kde.org/show_bug.cgi?id=247229





--- Comment #2 from Martin Albrecht <martinralbrecht googlemail com>  2010-08-23 21:15:35 ---
My attempts to debug this came this far, the function which does the Akonadi
call is Kleo::KeyResolver::ContactPreferences
Kleo::KeyResolver::lookupContactPreferences( const QString& address ) const in
keyresolver.cpp. The Akonadi query which comes back empty looks as follows:

SEARCH "prefix
nco:<http://www.semanticdesktop.org/ontologies/2007/03/22/nco#>SELECT DISTINCT
?person WHERE { graph ?g { ?person a nco:PersonContact ; ?person
<http://akonadi-project.org/ontologies/aneo#akonadiItemId> ?itemId .
nco:hasEmailAddress ?email . ?email nco:emailAddress
\"x at y.com\"^^<http://www.w3.org/2001/XMLSchema#string> . } } LIMIT 1"
FULLPAYLOAD EXTERNALPAYLOAD (UID REMOTEID COLLECTIONID FLAGS SIZE DATETIME) 

I don't speak enough SPARQL to judge whether this is correct. I noticed the ";"
which is a different construction from the other queries in that file. 

However, if I replace the call to 

 job->setQuery( Akonadi::ContactSearchJob::Email, address );

with

 job->setQuery( Akonadi::ContactSearchJob::Name, address );

(which of course is wrong) and replace the name of my contact with its e-mail
address, KMail shows the correct behaviour, implying that indeed the search
query for Email is wrong in 4.4.5

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Kdepim-bugs mailing list