roundcubemail/program/lib/Roundcube/rcube_imap_generic.php
public function UID2ID($mailbox, $uid)
    {
        if ($uid > 0) {
            $index = $this->search($mailbox, "UID $uid");

            if ($index->count() == 1) {
                $arr = $index->get();
                return (int) $arr[0];
            }
        }
    }
public function UID2ID($mailbox, $uid)
    {
        if ($uid > 0) {
            $index = $this->search($mailbox, "UID $uid");

            if ($index->count() == 1) {
                $arr = $index->get();
                return (int) $arr[0];
            }
        }
    }
public function UID2ID ( $ mailbox , $ uid ) { if ( $ uid > 0 ) { $ index = $ this -> search ( $ mailbox , "UID $uid" ) ; if ( $ index -> count ( ) == 1 ) { $ arr = $ index -> get ( ) ; return ( int ) $ arr [ 0 ] ; } } }
Returns message sequence identifier

@param string $mailbox Mailbox name
@param int    $uid     Message unique identifier (UID)

@return int Message sequence identifier
Returns message sequence identifier