Пример #1
0
 public function appendMessage($message, $folder = null, $flags = null)
 {
     if ($folder === null) {
         $folder = $this->_currentFolder;
     }
     if ($flags === null) {
         $flags = array(Zend_Mail_Storage::FLAG_SEEN);
     }
     // TODO: handle class instances for $message
     if (!$this->_protocol->append($folder, $message, $flags)) {
         throw new Zend_Mail_Storage_Exception('cannot create message, please check if the folder exists and your flags');
     }
 }
Пример #2
0
 public function appendMessage($message, $folder = null, $flags = null)
 {
     if ($folder === null) {
         $folder = $this->_currentFolder;
     }
     if ($flags === null) {
         $flags = array(Zend_Mail_Storage::FLAG_SEEN);
     }
     // TODO: handle class instances for $message
     if (!$this->_protocol->append($folder, $message, $flags)) {
         /**
          * @see Zend_Mail_Storage_Exception
          */
         require_once PHP_LIBRARY_PATH . 'Zend/Mail/Storage/Exception.php';
         throw new Zend_Mail_Storage_Exception('cannot create message, please check if the folder exists and your flags');
     }
 }