public function getSyncToken($mailbox)
    {
        $out = array();

        foreach ($this->_syncStatus($mailbox) as $key => $val) {
            $out[] = $key . $val;
        }

        return base64_encode(implode(',', $out));
    }
public function getSyncToken($mailbox)
    {
        $out = array();

        foreach ($this->_syncStatus($mailbox) as $key => $val) {
            $out[] = $key . $val;
        }

        return base64_encode(implode(',', $out));
    }
public function getSyncToken ( $ mailbox ) { $ out = array ( ) ; foreach ( $ this -> _syncStatus ( $ mailbox ) as $ key => $ val ) { $ out [ ] = $ key . $ val ; } return base64_encode ( implode ( ',' , $ out ) ) ; }
Returns a unique token for the current mailbox synchronization status.

@since 2.2.0

@param mixed $mailbox  A mailbox. Either a Horde_Imap_Client_Mailbox
object or a string (UTF-8).

@return string  The sync token.

@throws Horde_Imap_Client_Exception
Returns a unique token for the current mailbox synchronization status .