Пример #1
0
 public function appendMessage($message, $folder = null, $flags = null)
 {
     if ($folder === null) {
         $folder = $this->_currentFolder;
     }
     if ($flags === null) {
         $flags = array(Storage::FLAG_SEEN);
     }
     // TODO: handle class instances for $message
     if (!$this->_protocol->append($folder, $message, $flags)) {
         throw new Exception\RuntimeException('cannot create message, please check if the folder exists and your flags');
     }
 }