Commit Graph

51 Commits

Author SHA1 Message Date
Aleksander Machniak
55cdf1569e Support contact+group searches in all relevant places (T1360)
Before the search worked only in Addressbook, not also in Compose.
The point of the change is also to align group searches with contact searches
in that it now uses the same set of attributes. Previously groups
in Compose were searched by name only.
2016-08-08 07:12:39 -04:00
Bostjan Skufca
05c7d49a37 Autocomplete search: add id and source (addressbook) into resulting contact data array
Two reasons:
- provide it to plugin backend functions that use 'contacts_autocomplete_after' hook
- provide it to frontend

Why to frontend?
If plugin JS adds an 'autocomplete_insert' hook we need to provide it with exact
autocomplete data. Providing it with name and email address only, without pinpointing
exact origin of this autocomplete result, will severely limit learning capabilities of
potential future autocomplete implementations.
2016-04-14 02:45:21 +02:00
Bostjan Skufca
a15b2d5998 Autocomplete refactoring: replace variable name '$id' with '$abook_id'
Reason:
Having genericly named variable $id in nested loops makes code unreadable.
Replacing generic name '$id' with '$ENTITIY_id' format removes all ambiguity.
2016-04-14 02:39:54 +02:00
Bostjan Skufca
ed55af4aa9 Autocomplete: trigger "contacts_autocomplete_after" hook processing
Provide existing list of contact suggestions as an argument - it might be unclear
now what logic plugin developers decide to implement, but data for that logic
should be provided upfront, and that includes list of suggestions that RC
itself comes up with.

Plugin logic might then replace the list entirely, or just rearrange its entries, or use
part of the list when it runs out of own ideas, or do something entirely different.
2016-04-14 02:28:19 +02:00
Bostjan Skufca
865230e420 Autocomplete: fix undefined variable notice if no addressbook is configured for autocomplete 2016-04-14 02:28:09 +02:00
Aleksander Machniak
a958748947 CS fixes 2015-06-07 15:26:33 +02:00
Aleksander Machniak
e1c8fe5c4a Fix duplicate entries supression in autocomplete result (#1490290) 2015-02-25 09:45:57 -05:00
Thomas Bruederli
96f084e9cf Don't expand recipient groups if they have an email address 2014-08-18 14:17:16 +02:00
Aleksander Machniak
36d004e3d0 Added 'contact_search_name' option to define autocompletion entry format 2014-07-03 14:25:19 +02:00
Thomas Bruederli
66536974fe Merge branch 'dev-multi-folder-search' 2014-04-07 09:53:46 +02:00
Thomas Bruederli
532c10669b Support structured data for autocompletion results; map 'type' attribute to CSS class for autocomplete list items 2014-03-06 13:17:14 +01:00
Thomas
017c4f19fd Refactor multi-threaded autocomple contact searching to make it available for other purposes, too 2014-01-16 11:16:09 +01:00
Aleksander Machniak
c97625e02a CS fixes 2013-12-25 12:11:22 +01:00
Aleksander Machniak
6b2b2eca5f Remove deprecated functions (these listed in bc.php file) usage 2013-12-22 14:12:15 +01:00
Aleksander Machniak
774f9dc835 Fix replacing group name with group members on autocompletion
(for some addressbook plugins where email field is not a flat array)
2013-12-17 11:05:53 +01:00
Aleksander Machniak
ec43311423 Fix so addressbook_search_mode works also for group search (#1489079) 2013-05-01 09:46:29 +02:00
Thomas Bruederli
baecd8becc Move the hard-coded list of fields used to list contacts to a central location 2012-07-26 17:18:38 +02:00
Aleksander Machniak
041c93ce0b Removed $Id$ 2012-05-22 12:31:37 +02:00
thomascube
168e540923 Request all needed fields from address book backends (#1488394) 2012-03-14 08:27:18 +00:00
thomascube
7fe3811c65 Changed license to GNU GPLv3+ with exceptions for skins and plugins 2012-01-18 11:10:46 +00:00
thomascube
fbebf54a92 Only expand one email per group member 2011-12-19 12:42:57 +00:00
alecpl
2f9fdbff62 - Fix sorting autocomplete results to preserve email address significance (#1488084) 2011-11-14 11:21:39 +00:00
alecpl
710b1bd684 - Add option to skip alternative email addresses in autocompletion 2011-11-10 14:30:51 +00:00
alecpl
55a8a8cc25 - Fix matching check to be unicode-aware 2011-11-10 13:11:21 +00:00
alecpl
f21a04c024 - Add option to define matching method for addressbook search (#1486564, #1487907) 2011-11-10 07:57:56 +00:00
thomascube
62c8618744 Make email recipients separator configurable + suppress dupes in auto-completion 2011-11-08 18:50:08 +00:00
thomascube
dc6c4f4a28 Contact groups can have direct email addresses => distribution lists; enable 'compose' command for the selected group 2011-10-10 20:15:46 +00:00
thomascube
1a716d2d34 Add copyright line on files with significant changes from Kolab Systems 2011-08-24 20:16:14 +00:00
alecpl
0213f8d4dd - Added optional "multithreading" autocomplete feature 2011-07-25 10:49:39 +00:00
thomascube
03eb13f11c Small improvements and codestyle 2011-07-17 19:01:28 +00:00
thomascube
930d385d9e Skip empty e-mail addresses in autocompletion 2011-06-22 22:07:06 +00:00
thomascube
09c59abf85 Case-insensitive matching in autocompletion (#1487933); replace old string offset syntax 2011-05-31 16:17:23 +00:00
alecpl
111a6fc314 - Add info about indexcontacts.sh script in upgrade procedure 2011-03-31 06:07:15 +00:00
thomascube
0501b637a3 Merge branch devel-addressbook (r4193:4382) back into trunk 2011-01-18 18:00:57 +00:00
alecpl
e019f2d0f2 - s/RoundCube/Roundcube/ 2010-09-25 13:03:53 +00:00
alecpl
b25dfd0913 - removed PHP closing tag 2010-06-23 09:55:08 +00:00
alecpl
dbe4988941 - Remove duplicates in autocomplete result (#1486772) 2010-06-04 11:51:50 +00:00
alecpl
1ac779f490 - Use strcoll instead of strcmp when sorting contacts in autocomplete 2010-05-10 19:43:17 +00:00
alecpl
25fdec592d - Fix autocomplete shows entries without email (#1486452) 2010-05-10 19:38:45 +00:00
thomascube
53d6261619 Fix group expansion which was lost in r3457 + apply patch for autocompletion timeouts from #1486059 2010-04-07 15:53:48 +00:00
thomascube
c0297f4172 Asynchronously expand contact groups + skip count queries in autocompletion mode + check for the existance of contactgroups table 2010-03-31 15:23:22 +00:00
thomascube
a61bbb24aa Added basic contact groups feature 2010-03-26 16:38:20 +00:00
alecpl
1b5f98a46a - set Id keyword 2010-01-25 19:00:46 +00:00
alecpl
92f522d897 - Fix autocomplete bugs when erasing the comma (#1485990) 2009-07-22 06:52:58 +00:00
alecpl
cea956cf6a - Fix autocomplete problem with capital letters (#1485792) 2009-05-14 13:18:36 +00:00
alecpl
80e2278594 - simplified code for serverside autocomplete + set rows limit on server side only 2009-04-14 09:24:21 +00:00
thomascube
aaffbeb049 Prevent concurrent autocomplete query results display (#1485743) 2009-02-27 11:06:29 +00:00
alecpl
ebf96ef8bf - fix warning when 'autocomplete_addressbooks' is not an array (#1485691) 2009-01-19 11:46:52 +00:00
till
cbbef379a5 * bumping up copyright (happy new year ;-)) 2009-01-17 01:55:39 +00:00
thomascube
1553b3c701 Bugfix and improve auto-completion 2008-12-18 17:56:50 +00:00