roundcubemail/program/lib/Roundcube/rcube_addressbook.php
function insertMultiple($recset, $check=false)
    {
        $ids = array();
        if (is_object($recset) && is_a($recset, rcube_result_set)) {
            while ($row = $recset->next()) {
                if ($insert = $this->insert($row, $check))
                    $ids[] = $insert;
            }
        }
        return $ids;
    }
function insertMultiple($recset, $check=false)
    {
        $ids = array();
        if (is_object($recset) && is_a($recset, rcube_result_set)) {
            while ($row = $recset->next()) {
                if ($insert = $this->insert($row, $check))
                    $ids[] = $insert;
            }
        }
        return $ids;
    }
function insertMultiple ( $ recset , $ check = false ) { $ ids = array ( ) ; if ( is_object ( $ recset ) && is_a ( $ recset , rcube_result_set ) ) { while ( $ row = $ recset -> next ( ) ) { if ( $ insert = $ this -> insert ( $ row , $ check ) ) $ ids [ ] = $ insert ; } } return $ ids ; }
Create new contact records for every item in the record set

@param rcube_result_set $recset Recordset to insert
@param boolean          $check  True to check for duplicates first

@return array List of created record IDs
Create new contact records for every item in the record set