[Kde-pim] Address Query with ContactSearchJob in KDE 4.13.0

Klaas Freitag freitag at kde.org
Sat Apr 26 12:44:03 BST 2014


Hi,

as you might know my project Kraft [1] integrates with the KDE
addressbook tightly, which is a highly appreciated feature by the users
of Kraft.

Kraft uses the Akonadi::ContactSearchJob to query the addressbooks by UID.

Today I updated to KDE 4.13.0 and found that the query is not longer
working, the search result list is always empty. We had that in the
past, but often it helped to switch on the Nepomuk Indexing on PIM data.
Now that we do not use Nepomuk any more I wonder how that works now.

Here is a little test program called findcontact which can be used to
query for a contact:
https://projects.kde.org/projects/playground/office/kraft/repository/revisions/aed27bf3a54eec46d8ac330df95b579439c48151/entry/tools/findcontact.cpp

and this is what I see in the akonadiconsole debugger when query for an
existing address via UID:

===>
0x12f3980 * OK Akonadi Almost IMAP Server [PROTOCOL 37]
0x13bc1d0 * OK Akonadi Almost IMAP Server [PROTOCOL 37]
0x12f3980 0 LOGIN "-924859463"
-924859463 (0x12f3980) 0 OK User logged in
0x13bc1d0 0 LOGIN "-924859463-SearchSession"
-924859463-SearchSession (0x13bc1d0) 0 OK User logged in
-924859463 (0x12f3980) 1 CAPABILITY (NOTIFY 3 NOPAYLOADPATH
AKAPPENDSTREAMING SERVERSEARCH)
-924859463 (0x12f3980) 1 OK CAPABILITY completed
-924859463-SearchSession (0x13bc1d0) 1 CAPABILITY (NOTIFY 3
NOPAYLOADPATH AKAPPENDSTREAMING SERVERSEARCH)
-924859463-SearchSession (0x13bc1d0) 1 OK CAPABILITY completed
-924859463-SearchSession (0x13bc1d0) 2 SEARCH MIMETYPE (text/directory)
QUERY "{ \"limit\" : 1, \"negated\" : false, \"rel\" : 1, \"subTerms\" :
[ { \"cond\" : 0, \"key\" : \"uid\", \"negated\" : false, \"value\" :
\"Kp9LZPRW8P\" } ] }" FULLPAYLOAD EXTERNALPAYLOAD (UID COLLECTIONID
FLAGS SIZE REMOTEID REMOTEREVISION DATETIME)
-924859463-SearchSession (0x13bc1d0) 2 OK Search done
<===

I swear that a contact with UID Kp9LZPRW8P exists in a local addressbook ;-)

I'd appreciate any hints on how this problem could be solved, for me to
improve Kraft and for Kraft's users who are often non tech people who
get into trouble if they update to a more recent KDE version and see
this breaking, as they fear to be not longer able to send out invoices.
That is a uncomfortable situation for them which makes them quickly
running away ;-)

If that is a problem like "baloo does not have this functionality yet"
its fine but than I would like to inform Krafts user to _not_ update yet.

Thanks for your help & and the great improvements recently,

Klaas


[1] http://volle-kraft-voraus.de
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list