original_string: 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'];
      }
code: 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'];
      }
code_tokens: 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' ] ; }
docstring: 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).
docstring_tokens: Get a message UID by the Message - ID . Returns the last message in a mailbox that matches .