roundcubemail/program/lib/Roundcube/rcube_user.php
static function email2user($email)
    {
        $rcube = rcube::get_instance();
        $plugin = $rcube->plugins->exec_hook('email2user',
            array('email' => $email, 'user' => NULL));

        return $plugin['user'];
    }
static function email2user($email)
    {
        $rcube = rcube::get_instance();
        $plugin = $rcube->plugins->exec_hook('email2user',
            array('email' => $email, 'user' => NULL));

        return $plugin['user'];
    }
static function email2user ( $ email ) { $ rcube = rcube :: get_instance ( ) ; $ plugin = $ rcube -> plugins -> exec_hook ( 'email2user' , array ( 'email' => $ email , 'user' => NULL ) ) ; return $ plugin [ 'user' ] ; }
Resolve username using a virtuser plugins

@param string $email E-mail address to resolve
@return string Resolved IMAP username
Resolve username using a virtuser plugins