What does Imap mean? phpimap function details. The full name of imap is internetmessageaccessprotocol, which is the internet information access protocol. The full name of imap, a multi-Mailbox email developed by stanforduniversity in 1986, is internet message access protocol, the Internet information access protocol is a multi-Mailbox email system developed by stanford university in 1986. Php provides the imap 4 system, which is implemented according to rfc 1730. For more information about imap, see imap's official website http://www.imap.org.
To use the imap email feature, first go to the ftp://ftp.cac.washington.edu/imap to download the imap client program. After compilation, copy the c-client/c-client.a to/usr/local/lib, and c-client/rfc822.h, mail. h and linkage. h. copy the three files to/usr/local/include. The-with-imap option should be added when the php program is compiled later.
Imap_append: append the string to the specified mailbox.
Imap_base64: decodes base64 encoding.
Imap_body: the inner of the email.
Imap_check: return email information.
Imap_close: close the imap link.
Imap_createmailbox: creates a new mailbox.
Imap_delete: Mark the email to be deleted.
Imap_deletemailbox: delete an existing mailbox.
Imap_expunge: Delete a marked email.
Imap_fetchbody: extracts the specified part from the letter.
Imap_fetchstructure: Gets the structure information of a letter.
Imap_header: Gets the header information of a letter.
Imap_headers: obtains the header information of all emails.
Imap_listmailbox: Get the mailbox list.
Imap_listsubscribed: obtains the list of subscription mailboxes.
Imap_mail_copy: copy a specified letter to its mailbox.
Imap_mail_move: move a specified letter to its mailbox.
Imap_num_msg: gets the number of letters.
Imap_num_recent: Get New Mail count.
Imap_open: Open the imap link.
Imap_ping: Check whether imap is connected.
Imap_renamemailbox: change the email name.
Imap_reopen: re-open the imap link.
Imap_subscribe: subscribe email address.
Imap_undelete: cancel deleting the Mail mark.
Imap_unsubscribe: cancels the subscription email.
Imap_qprint: convert the qp encoding to eight bits.
Imap_8bit: convert eight bits into qp encoding.
Imap_binary: convert eight bits into base64 encoding.
Imap_scanmailbox: find whether a letter contains a specific string.
Imap_mailboxmsginfo: get the current mailbox information.
Imap_rfc822_write_address: email address standardization.
Imap_rfc822_parse_adrlist: resolves the email address.
Imap_setflag_full: configure the letter flag.
Imap_clearflag_full: Clear the letter flag.
Imap_sort: sorts mail headers.
Imap_fetchheader: Gets the original header.
Imap_uid: obtain the letter uid.
Imap_getmailboxes: obtain details of all emails.
Imap_getsubscribed: lists all subscription mailboxes.
Imap_msgno: list sequential uid messages.
Imap_search: Searches for specified standard letters.
Imap_last_error: The final error message.
Imap_errors: all error messages.
Imap_alerts: all warning information.
Imap_status: current status information.
Imap_append
Append the string to the specified mailbox.
Syntax: int imap_append (int imap_stream, string mbox, string message, string [flags]);
Return value: integer
Function type: Network System
Description: This function can add additional strings to the specified email address. The imap_stream parameter is the imap code. The mbox parameter is the email address. The message parameter is the information to be appended. The flag parameter can be omitted, indicating the flag value of the email. When communicating with the cyrus imap server, use \ r \ n as the end-of-line (eol ). If an error occurs, false is returned.
Imap_base64
Decodes base64 encoding.
Syntax: string imap_base64 (string text );
Return value: string
Function type: Network System
Description: This function can be decoded using a base64 encoded string. The returned value is the decoded string.
Refer to imap_binary () base64_encode () base64_decode ()
Imap_body
The internal text of the email.
Syntax: string imap_body (int imap_stream, int msg_number, int [flags]);
Return value: string
Function type: Network System
Description
This function can read the body of a letter. The imap_stream parameter is the imap code. The msg_number parameter is the serial number of a letter. The flags parameter can be omitted and has the following values:
Ft_uid: The letter number is uid.
Ft_peek: do not set this flag if the \ seen flag is not configured.
Ft_internal: the returned string uses the system format. do not convert it to the crlf line termination standard.
Example
In this example, the imap protocol is used to read the first upload of myid @ localhost.
Imap_check
Return email information.
Syntax: object imap_check (int imap_stream );
Returned value: Class
Function type: Network System
Description: This function obtains the current email address. The returned value is of the class type and contains the following attributes.
Date: The date driver interface used by the latest Mail. mailbox Email Address: nmsgs total number of emails recent new mail number
Meaning of class attributes
Refer to imap_mailboxmsginfo ()
Imap_close
Disable the imap link.
Syntax: int imap_close (int imap_stream, int [flags]);
Return value: integer
Function type: Network System
Description: This function is used to close the imap data stream, that is, to end the link. If the value of the parameter flags that can be omitted is cl_expunge, the email box will be cleared before the link is closed.
Imap_createmailbox
Create a new mailbox.
Syntax: int imap_createmailbox (int imap_stream, string mbox );
Return value: integer
Function type: Network System
Description
This function is used to create a new mailbox. If the call succeeds, the return value is true.
Imap_delete
Mark the email to be deleted.
Syntax: int imap_delete (int imap_stream, int msg_number );
Return value: integer
Function type: Network System
Description
This function is only used to mark the email to be deleted. Actually deleted command imap_expunge ()
Imap_deletemailbox
Delete an existing mailbox.
Syntax: int imap_deletemailbox (int imap_stream, string mbox );
Return value: integer
Function type: Network System
Description: This function is used to delete an existing mailbox. If the call succeeds, the return value is true.
Imap_expunge
Delete a marked email.
Syntax: int imap_expunge (int imap_stream );
- 5 pages in total:
- Previous Page
- 1
- 2
- 3
- 4
- 5
- Next page
Http://www.bkjia.com/PHPjc/363940.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/363940.htmlTechArticleimap's full name is internet message access protocol, the internet information access protocol, for the United States stanford university (stanford university) in 1986 began to develop a multi-mailbox e-mail...