$imapPath
$imapPath :
checkMailbox() : \stdClass
Get information about the current mailbox.
Returns the information in an object with following properties: Date - current system time formatted according to RFC2822 Driver - protocol used to access this mailbox: POP3, IMAP, NNTP Mailbox - the mailbox name Nmsgs - number of mails in the mailbox Recent - number of recent mails in the mailbox
statusMailbox() : \stdClass
Gets status information about the given mailbox.
This function returns an object containing status information. The object has the following properties: messages, recent, unseen, uidnext, and uidvalidity.
| FALSE if the box doesn't exist
searchMailbox(string $criteria = 'ALL') : array
This function performs a search on the mailbox currently opened in the given IMAP stream.
For example, to match all unanswered mails sent by Mom, you'd use: "UNANSWERED FROM mom". Searches appear to be case insensitive. This list of criteria is from a reading of the UW c-client source code and may be incomplete or inaccurate (see also RFC2060, section 6.4.4).
string | $criteria | String, delimited by spaces, in which the following keywords are allowed. Any multi-word arguments (e.g. FROM "joey smith") must be quoted. Results will match all criteria entries.
|
Mails ids
clearFlag(array $mailsIds, $flag) : boolean
Cause a store to delete the specified flag to the flags set for the mails in the specified sequence.
array | $mailsIds | |
$flag | Flags which you can set are \Seen, \Answered, \Flagged, \Deleted, and \Draft as defined by RFC2060. |
getMailsInfo(array $mailsIds) : array
Fetch mail headers for listed mails ids
Returns an array of objects describing one mail header each. The object will only define a property if it exists. The possible properties are: subject - the mails subject from - who sent it to - recipient date - when was it sent message_id - Mail-ID references - is a reference to this mail id in_reply_to - is a reply to this mail id size - size in bytes uid - UID the mail has in the mailbox msgno - mail sequence number in the mailbox recent - this mail is flagged as recent flagged - this mail is flagged answered - this mail is flagged as answered deleted - this mail is flagged for deletion seen - this mail is flagged as already read draft - this mail is flagged as being a draft
array | $mailsIds |
getMailboxInfo() : object
Get information about the current mailbox.
Returns an object with following properties: Date - last change (current datetime) Driver - driver Mailbox - name of the mailbox Nmsgs - number of messages Recent - number of recent messages Unread - number of unread messages Deleted - number of deleted messages Size - mailbox size
Object with info | FALSE on failure
sortMails(integer $criteria = SORTARRIVAL, boolean $reverse = true) : array
Gets mails ids sorted by some criteria
Criteria can be one (and only one) of the following constants: SORTDATE - mail Date SORTARRIVAL - arrival date (default) SORTFROM - mailbox in first From address SORTSUBJECT - mail subject SORTTO - mailbox in first To address SORTCC - mailbox in first cc address SORTSIZE - size of mail in octets
integer | $criteria | |
boolean | $reverse |
Mails ids
getMail( $mailId) : \IncomingMail
Get mail data
$mailId |
initMailPart(\IncomingMail $mail, $partStructure, $partNum)
\IncomingMail | ||
$partStructure | ||
$partNum |