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.
array $_files = 'array'data of found message files in maildir dir
Detailsarray $_knownFlags = 'array'known flag chars in filenames
This list has to be in alphabetical order for setFlags()
Detailsstring $_messageClass = 'Zend_Mail_Message_File'used message class, change it in an extened class to extend the returned message class
Details__construct(
$params $params
)
:
Create instance with parameters Supported parameters are: - dirname dirname of mbox file
Details_getFileData(
int $id, string|null $field
=
null
)
:
string|arrayGet one or all fields from file structure. Also checks if message is valid
Details_getMaildirFiles(
resource $dh, string $dirname, array $default_flags
=
array
)
:
nullfind all files in opened dir handle and add to maildir files
Details_isMaildir(
string $dirname
)
:
boolcheck if a given dir is a valid maildir
Details_openMaildir(
string $dirname
)
:
nullopen given dir as current maildir
Detailsclose(
)
:
voidClose resource for mail lib. If you need to control, when the resource is closed. Otherwise the destructor would call this.
DetailscountMessages(
$flags
=
null
)
:
intCount messages all messages in current box
DetailsgetMessage(
int $id
)
:
Zend_Mail_Message_FileFetch 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|null $id
=
null
)
:
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
Detailsnoop(
)
:
voidWaste some CPU cycles doing nothing.
DetailsremoveMessage(
$id
)
:
nullstub for not supported message deletion
Details