Mail: ezcMailMboxSet
[ ]
[ Display-example ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailMboxSet
|
ezcMailMboxSet is an internal class that fetches a series of mail from an mbox file. [
source]
Implemented Interfaces
The mbox set is constructed from a file pointer and iterates over all the messages in an mbox file.
Method Summary
|
public ezcMailMboxSet |
__construct(
$fh, $messages )
Constructs a new mbox parser set |
|
public string |
getNextLine(
)
Returns one line of data from the current mail in the set including the ending linebreak. |
|
public bool |
hasData(
)
Returns whether the set contains mails |
|
public bool |
isFinished(
)
Returns true if all the data has been fetched from this set. |
|
public bool |
nextMail(
)
Moves the set to the next mail and returns true upon success. |
Methods
__construct
ezcMailMboxSet __construct(
$fh,
$messages )
Constructs a new mbox parser set
Parameters
| Name |
Type |
Description |
$fh |
|
|
$messages |
array |
|
getNextLine
string getNextLine(
)
Returns one line of data from the current mail in the set including the ending linebreak.
Null is returned if there is no current mail in the set or the end of the mail is reached.
hasData
bool hasData(
)
Returns whether the set contains mails
isFinished
bool isFinished(
)
Returns true if all the data has been fetched from this set.
nextMail
bool nextMail(
)
Moves the set to the next mail and returns true upon success.
False is returned if there are no more mail in the set.
Last updated: Thu, 01 Nov 2007