protected function _getUidByMessageId($mailbox, $msgid)
    {
        if (!$msgid) {
            return null;
        }

        $query = new Horde_Imap_Client_Search_Query();
        $query->headerText('Message-ID', $msgid);
        $res = $this->search($mailbox, $query, array(
            'results' => array(Horde_Imap_Client::SEARCH_RESULTS_MAX)
        ));

        return $res['max'];
    }
protected function _getUidByMessageId($mailbox, $msgid)
    {
        if (!$msgid) {
            return null;
        }

        $query = new Horde_Imap_Client_Search_Query();
        $query->headerText('Message-ID', $msgid);
        $res = $this->search($mailbox, $query, array(
            'results' => array(Horde_Imap_Client::SEARCH_RESULTS_MAX)
        ));

        return $res['max'];
    }
protected function _getUidByMessageId ( $ mailbox , $ msgid ) { if ( ! $ msgid ) { return null ; } $ query = new Horde_Imap_Client_Search_Query ( ) ; $ query -> headerText ( 'Message-ID' , $ msgid ) ; $ res = $ this -> search ( $ mailbox , $ query , array ( 'results' => array ( Horde_Imap_Client :: SEARCH_RESULTS_MAX ) ) ) ; return $ res [ 'max' ] ; }
Get a message UID by the Message-ID. Returns the last message in a
mailbox that matches.

@param Horde_Imap_Client_Mailbox $mailbox  The mailbox to search
@param string $msgid                       Message-ID.

@return string  UID (null if not found).
Get a message UID by the Message - ID . Returns the last message in a mailbox that matches .