F.18. IMAP
Function | Returns | Description |
---|---|---|
imap_open(string mailbox, string user, string password [, int options]) | resource | Opens an IMAP stream to a mailbox. |
imap_reopen(resource stream_id, string mailbox [, int options]) | bool | Reopens an IMAP stream to a new mailbox. |
imap_append(resource stream_id, string folder, string message [, string options]) | bool | Appends a new message to a specified mailbox. |
imap_num_msg(resource stream_id) | int | Gives the number of messages in the current mailbox. |
imap_ping(resource stream_id) | bool | Checks if the IMAP stream is still active. |
imap_num_recent(resource stream_id) | int | Gives the number of recent messages in current mailbox. |
imap_get_quota(resource stream_id, string qroot) | array | Returns the quota set to the mailbox account qroot. |
imap_get_quotaroot(resource stream_id, string mbox) | array | Returns the quota set to the mailbox account mbox. |
imap_set_quota(resource stream_id, string qroot, int mailbox_size) | bool | Sets the quota for qroot mailbox. |
imap_setacl(resource stream_id, string mailbox, string id, string rights) | bool | Sets the ACL for a given mailbox. |
imap_getacl(resource stream_id, string mailbox) | array | Gets the ACL for a given mailbox. |
imap_expunge(resource stream_id) | bool | Permanently deletes all messages marked for deletion. |
imap_close(resource stream_id [, int options]) | bool | Closes an IMAP stream. |
imap_headers(resource stream_id) | array | Returns headers for all messages in a mailbox. |
imap_body(resource stream_id, int msg_no [, int options]) | string | Reads the message ... |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.