GNOME Bugzilla – Bug 677684
Addressbook doesn't return matched contacts
Last modified: 2012-06-13 14:19:50 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.
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.
Created commit ad0bc4f in ema master (3.5.3+) Created commit 7c30182 in ema gnome-3-4 (3.4.3+)