svncommit
2011-02-15 3221c95a29c19677ff7c82e259aa683de4c224e7
program/steps/addressbook/import.inc
@@ -5,7 +5,7 @@
 | 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:                                                              |
@@ -134,6 +134,9 @@
        $IMPORT_STATS->nomail++;
        continue;
      }
      // We're using UTF8 internally
      $email = rcube_idn_to_utf8($email);
      
      if (!$replace) {
        // compare e-mail address
@@ -147,13 +150,8 @@
        }
      }
      
      $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'];