original_string: public function append($folder, $message, $flags = null, $date = null)
      {
          $tokens = array();
          $tokens[] = $this->escapeString($folder);
          if ($flags !== null) {
              $tokens[] = $this->escapeList($flags);
          }
          if ($date !== null) {
              $tokens[] = $this->escapeString($date);
          }
          $tokens[] = $this->escapeString($message);
  
          return $this->requestAndResponse('APPEND', $tokens, true);
      }
code: public function append($folder, $message, $flags = null, $date = null)
      {
          $tokens = array();
          $tokens[] = $this->escapeString($folder);
          if ($flags !== null) {
              $tokens[] = $this->escapeList($flags);
          }
          if ($date !== null) {
              $tokens[] = $this->escapeString($date);
          }
          $tokens[] = $this->escapeString($message);
  
          return $this->requestAndResponse('APPEND', $tokens, true);
      }
code_tokens: public function append ( $ folder , $ message , $ flags = null , $ date = null ) { $ tokens = array ( ) ; $ tokens [ ] = $ this -> escapeString ( $ folder ) ; if ( $ flags !== null ) { $ tokens [ ] = $ this -> escapeList ( $ flags ) ; } if ( $ date !== null ) { $ tokens [ ] = $ this -> escapeString ( $ date ) ; } $ tokens [ ] = $ this -> escapeString ( $ message ) ; return $ this -> requestAndResponse ( 'APPEND' , $ tokens , true ) ; }
docstring: append a new message to given folder
  
  @param string $folder  name of target folder
  @param string $message full message content
  @param array  $flags   flags for new message
  @param string $date    date for new message
  @return bool success
  @throws Zend_Mail_Protocol_Exception
docstring_tokens: append a new message to given folder