public function setMetaData($mailbox, $uidvalid, array $data = array())
    {
        unset($data['uidvalid']);

        if (!empty($data)) {
            if (!empty($uidvalid)) {
                $data['uidvalid'] = $uidvalid;
            }
            $mailbox = strval($mailbox);

            $this->_backend->setMetaData($mailbox, $data);

            if ($this->_debug) {
                $this->_debug->info(sprintf(
                    'CACHE: Stored metadata (%s [%s])',
                    implode(',', array_keys($data)),
                    $mailbox
                ));
            }
        }
    }
public function setMetaData($mailbox, $uidvalid, array $data = array())
    {
        unset($data['uidvalid']);

        if (!empty($data)) {
            if (!empty($uidvalid)) {
                $data['uidvalid'] = $uidvalid;
            }
            $mailbox = strval($mailbox);

            $this->_backend->setMetaData($mailbox, $data);

            if ($this->_debug) {
                $this->_debug->info(sprintf(
                    'CACHE: Stored metadata (%s [%s])',
                    implode(',', array_keys($data)),
                    $mailbox
                ));
            }
        }
    }
public function setMetaData ( $ mailbox , $ uidvalid , array $ data = array ( ) ) { unset ( $ data [ 'uidvalid' ] ) ; if ( ! empty ( $ data ) ) { if ( ! empty ( $ uidvalid ) ) { $ data [ 'uidvalid' ] = $ uidvalid ; } $ mailbox = strval ( $ mailbox ) ; $ this -> _backend -> setMetaData ( $ mailbox , $ data ) ; if ( $ this -> _debug ) { $ this -> _debug -> info ( sprintf ( 'CACHE: Stored metadata (%s [%s])' , implode ( ',' , array_keys ( $ data ) ) , $ mailbox ) ) ; } } }
Set metadata information for a mailbox.

@param string $mailbox    An IMAP mailbox string.
@param integer $uidvalid  The IMAP uidvalidity value of the mailbox.
@param array $data        The list of data to save. The keys are the
metadata IDs, the values are the associated
data. The following labels are reserved:
'uidvalid'.
Set metadata information for a mailbox .