After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 677684 - Addressbook doesn't return matched contacts
Addressbook doesn't return matched contacts
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Contacts (Addressbook)
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: evolution-mapi-maint
evolution-mapi-maint
Depends on:
Blocks:
 
 
Reported: 2012-06-08 09:29 UTC by Milan Crha
Modified: 2012-06-13 14:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ema patch (5.22 KB, patch)
2012-06-13 14:17 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2012-06-08 09:29:28 UTC
I just realized that this can be visible with non-cached GAL, where are done live queries on the server. With Autocompletion in composer, which produces pretty "complicated" search terms, the server can just reject searching it with MAPI_E_TOO_COMPLEX, giving user basically no result.

There should be added some fallback code to query at least something, and fine-tune results with evolution's machinery on transformed EContact-s.
Comment 1 Milan Crha 2012-06-13 14:17:00 UTC
Created attachment 216284 [details] [review]
ema patch

for evolution-mapi;

This makes sure the two consecutive OR-s/AND-s are joined into one (consecutive means one OR being directly under another OR), thus it is a flat OR/AND. If the GAL search fails with MAPI_E_TOO_COMPLEX, then OR-restrictions are tried one after each other, some may fail, some mail succeed, but if at least one works, then the whole operation is considered working.
Comment 2 Milan Crha 2012-06-13 14:19:50 UTC
Created commit ad0bc4f in ema master (3.5.3+)
Created commit 7c30182 in ema gnome-3-4 (3.4.3+)