roundcubemail/plugins/virtuser_query/virtuser_query.php
function email2user($p)
    {
        $dbh = $this->get_dbh();

        $sql_result = $dbh->query(preg_replace('/%m/', $dbh->escape($p['email']), $this->config['user']));

        if ($sql_arr = $dbh->fetch_array($sql_result)) {
            $p['user'] = $sql_arr[0];
        }

        return $p;
    }
function email2user($p)
    {
        $dbh = $this->get_dbh();

        $sql_result = $dbh->query(preg_replace('/%m/', $dbh->escape($p['email']), $this->config['user']));

        if ($sql_arr = $dbh->fetch_array($sql_result)) {
            $p['user'] = $sql_arr[0];
        }

        return $p;
    }
function email2user ( $ p ) { $ dbh = $ this -> get_dbh ( ) ; $ sql_result = $ dbh -> query ( preg_replace ( '/%m/' , $ dbh -> escape ( $ p [ 'email' ] ) , $ this -> config [ 'user' ] ) ) ; if ( $ sql_arr = $ dbh -> fetch_array ( $ sql_result ) ) { $ p [ 'user' ] = $ sql_arr [ 0 ] ; } return $ p ; }
EMail > User
EMail > User