diff options
author | alecpl <alec@alec.pl> | 2011-11-10 07:57:56 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-11-10 07:57:56 +0000 |
commit | f21a04c024e57d2396c6a8ab78b055de098217ee (patch) | |
tree | 142979e9d62db88f361587bb2617eb31e1e7207a /program/steps/addressbook/search.inc | |
parent | 81f5dd7774119e6f35f4594a68b25e53a22e65f2 (diff) |
- Add option to define matching method for addressbook search (#1486564, #1487907)
Diffstat (limited to 'program/steps/addressbook/search.inc')
-rw-r--r-- | program/steps/addressbook/search.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc index ea9824727..643cc60a8 100644 --- a/program/steps/addressbook/search.inc +++ b/program/steps/addressbook/search.inc @@ -137,6 +137,9 @@ function rcmail_contact_search() } } + // Values matching mode + $mode = (int) $RCMAIL->config->get('addressbook_search_mode'); + // get sources list $sources = $RCMAIL->get_address_sources(); $search_set = array(); @@ -168,7 +171,7 @@ function rcmail_contact_search() $source->set_pagesize(9999); // get contacts count - $result = $source->search($fields, $search, false, false); + $result = $source->search($fields, $search, $mode, false); if (!$result->count) { continue; |