appendMessage(string | \Zend\Mail\Message | \Zend\Mime\Message $message, null | string | \Zend\Mail\Storage\Folder $folder, null | array $flags)
nullarray
set flags for new message, else a default set is used
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
copyMessage(int $id, string | \Zend\Mail\Storage\Folder $folder)
createFolder(string $name, string | \Zend\Mail\Storage\Folder $parentFolder)
This method also creates parent folders if necessary. Some mail storages may restrict, which folder may be used as parent or which chars may be used in the folder name
string
global name of folder, local name if $parentFolder is set
string\Zend\Mail\Storage\Folder
parent folder for new folder, else root folder is parent
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
moveMessage(int $id, string | \Zend\Mail\Storage\Folder $folder)
removeFolder(string | \Zend\Mail\Storage\Folder $name)
renameFolder(string | \Zend\Mail\Storage\Folder $oldName, string $newName)
The new name has the same restrictions as in createFolder()
string
new global name of folder
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|
setFlags(int $id, array $flags)
NOTE: this method can't set the recent flag.
int
number of message
array
new flags for message
\Zend\Mail\Storage\Exception\ExceptionInterface |
---|