Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
string $_currentFolder = ''name of current folder
Detailsarray $_knownFlags = 'array'imap flags to constants translation
Detailsnull|Zend_Mail_Protocol_Imap $_protocol = ''protocol handler
Detailsarray $_searchFlags = 'array'map flags to search criterias
Details__construct(
array $params
)
:
create instance with parameters Supported paramters are - user username - host hostname or ip address of IMAP server [optional, default = 'localhost'] - password password for user 'username' [optional, default = ''] - port port for IMAP server [optional, default = 110] - ssl 'SSL' or 'TLS' for secure sockets - folder select this folder [optional, default = 'INBOX']
DetailsappendMessage(
string $message, null|string|Zend_Mail_Storage_Folder $folder
=
null, null|array $flags
=
null
)
:
append a new message to mail storage
Detailsclose(
)
:
nullClose resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
DetailscopyMessage(
int $id, string|Zend_Mail_Storage_Folder $folder
)
:
nullcopy an existing message
DetailscountMessages(
$flags
=
null
)
:
intCount messages all messages in current box
DetailscreateFolder(
string $name, string|Zend_Mail_Storage_Folder $parentFolder
=
null
)
:
nullcreate a new folder
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
DetailsgetCurrentFolder(
)
:
Zend_Mail_Storage_Folderget Zend_Mail_Storage_Folder instance for current folder
DetailsgetFolders(
string $rootFolder
=
null
)
:
Zend_Mail_Storage_Folderget root folder or given folder
DetailsgetMessage(
int $id
)
:
Zend_Mail_MessageFetch a message
DetailsgetNumberByUniqueId(
string $id
)
:
intget a message number from a unique id
I.e. if you have a webmailer that supports deleting messages you should use unique ids as parameter and use this method to translate it to message number right before calling removeMessage()
DetailsgetRawContent(
$id, $part
=
null
)
:
DetailsgetRawHeader(
$id, $part
=
null, $topLines
=
0
)
:
DetailsgetSize(
int $id
=
0
)
:
int|arrayget a list of messages with number and size
DetailsgetUniqueId(
int|null $id
=
null
)
:
array|stringget unique id for one or all messages
if storage does not support unique ids it's the same as the message number
DetailsmoveMessage(
int $id, string|Zend_Mail_Storage_Folder $folder
)
:
nullmove an existing message
NOTE: imap has no native move command, thus it's emulated with copy and delete
Detailsnoop(
)
:
nullKeep the server busy.
DetailsremoveFolder(
string|Zend_Mail_Storage_Folder $name
)
:
nullremove a folder
DetailsremoveMessage(
int $id
)
:
nullRemove a message from server. If you're doing that from a web enviroment you should be careful and use a uniqueid as parameter if possible to identify the message.
DetailsrenameFolder(
string|Zend_Mail_Storage_Folder $oldName, string $newName
)
:
nullrename and/or move folder
The new name has the same restrictions as in createFolder()
DetailsselectFolder(
Zend_Mail_Storage_Folder|string $globalName
)
:
nullselect given folder
folder must be selectable!
DetailssetFlags(
int $id, array $flags
)
:
set flags for message
NOTE: this method can't set the recent flag.
Details