| | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2008-2011, Roundcube Dev Team | |
| | | | Copyright (C) 2011, Kolab Systems AG | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | | PURPOSE: | |
| | | | Perform a search on configured address books for the address | |
| | |
| | | $abook->set_pagesize(1000); // TODO: limit number of group members by config |
| | | $result = $abook->list_records(array('email','name')); |
| | | while ($result && ($sql_arr = $result->iterate())) { |
| | | foreach ((array)$sql_arr['email'] as $email) |
| | | foreach ((array)$sql_arr['email'] as $email) { |
| | | $members[] = format_email_recipient($email, $sql_arr['name']); |
| | | break; // only expand one email per contact |
| | | } |
| | | } |
| | | |
| | | $separator = trim($RCMAIL->config->get('recipients_separator', ',')) . ' '; |