public function uniqueid($msgno = null)
    {
        if ($msgno !== null) {
            $result = $this->request("UIDL $msgno");

            list(, $result) = explode(' ', $result);
            return $result;
        }

        $result = $this->request('UIDL', true);

        $result = explode("\n", $result);
        $messages = array();
        foreach ($result as $line) {
            if (!$line) {
                continue;
            }
            list($no, $id) = explode(' ', trim($line), 2);
            $messages[(int)$no] = $id;
        }

        return $messages;

    }
public function uniqueid($msgno = null)
    {
        if ($msgno !== null) {
            $result = $this->request("UIDL $msgno");

            list(, $result) = explode(' ', $result);
            return $result;
        }

        $result = $this->request('UIDL', true);

        $result = explode("\n", $result);
        $messages = array();
        foreach ($result as $line) {
            if (!$line) {
                continue;
            }
            list($no, $id) = explode(' ', trim($line), 2);
            $messages[(int)$no] = $id;
        }

        return $messages;

    }
public function uniqueid ( $ msgno = null ) { if ( $ msgno !== null ) { $ result = $ this -> request ( "UIDL $msgno" ) ; list ( , $ result ) = explode ( ' ' , $ result ) ; return $ result ; } $ result = $ this -> request ( 'UIDL' , true ) ; $ result = explode ( "\n" , $ result ) ; $ messages = array ( ) ; foreach ( $ result as $ line ) { if ( ! $ line ) { continue ; } list ( $ no , $ id ) = explode ( ' ' , trim ( $ line ) , 2 ) ; $ messages [ ( int ) $ no ] = $ id ; } return $ messages ; }
Make UIDL call for getting a uniqueid

@param  int|null $msgno number of message, null for all
@return string|array uniqueid of message or list with array(num => uniqueid)
@throws Zend_Mail_Protocol_Exception
Make UIDL call for getting a uniqueid