©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PHP 4, PHP 5, PHP 7)
imap_headers — Returns headers for all messages in a mailbox
$imap_stream
)Returns headers for all messages in a mailbox.
imap_stream
由 imap_open() 返回的 IMAP 流。
Returns an array of string formatted with header info. One element per mail message.
[#1] antispam at katiheta dot net [2013-07-31 14:44:48]
Message flag descriptions can be found on official imap_headerinfo page (http://www.php.net/manual/en/function.imap-headerinfo.php) in "Return Value" paragraph.
[#2] paulwright75 at hotmail dot com [2013-06-18 00:54:05]
Ok, this page is driving me crazy. Parsing the lines returned in the array is simple enough but there is no definitions on what the flags mean. So I searched the web to find the answer and this is what I was able to gather:
A - Answered: email has been replied to
N - New: Recent and not seen
R - Recent: Recent and seen
U - Unread: The message has not been read yet
F - Flagged: Message is "flagged" for urgent/special attention
D - Deleted: Message is "deleted" for removal by later EXPUNGE
X - Draft: Message has not completed composition (marked as a draft).
please correct me if I am wrong...
[#3] mmuoio at gmail dot com [2009-10-12 10:39:45]
This function will not return a full subject line if it is longer than 25 characters. I found this out after trying to search each header and move the email to a different folder depending on what the subject was (searching for year and project number).