Esempio n. 1
0
 /**
  * Move the specified message from the current folder into a new
  * folder.
  *
  * @param string $object_uid ID of the message to be deleted.
  * @param string $new_share  ID of the target share.
  *
  * @return boolean|PEAR_Error True is successful, false if the
  *                            object does not exist.
  */
 public function move($object_uid, $new_share)
 {
     if (!$this->objectUidExists($object_uid)) {
         return false;
     }
     // Find the storage ID
     $id = $this->getStorageId($object_uid);
     if ($id === false) {
         return false;
     }
     $result = $this->_folder->moveMessageToShare($id, $new_share);
     unset($this->_cache->objects[$object_uid]);
     unset($this->_cache->uids[$id]);
     $this->_cache->save();
     return true;
 }