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);
    }
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);
    }
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 ) ; }
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
append a new message to given folder