| | |
| | | | program/steps/addressbook/import.inc | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2008-2009, Roundcube Dev. - Switzerland | |
| | | | Copyright (C) 2008-2009, The Roundcube Dev Team | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | $IMPORT_STATS->nomail++; |
| | | continue; |
| | | } |
| | | |
| | | // We're using UTF8 internally |
| | | $email = rcube_idn_to_utf8($email); |
| | | |
| | | if (!$replace) { |
| | | // compare e-mail address |
| | |
| | | } |
| | | } |
| | | |
| | | $a_record = array( |
| | | 'name' => $vcard->displayname, |
| | | 'firstname' => $vcard->firstname, |
| | | 'surname' => $vcard->surname, |
| | | 'email' => $email, |
| | | 'vcard' => $vcard->export(), |
| | | ); |
| | | $a_record = $vcard->get_assoc(); |
| | | $a_record['vcard'] = $vcard->export(); |
| | | |
| | | $plugin = $RCMAIL->plugins->exec_hook('contact_create', array('record' => $a_record, 'source' => null)); |
| | | $a_record = $plugin['record']; |