(PHP 4, PHP 5, PHP 7, PHP 8)
imap_headerinfo — Read the header of the message
$imap
, int $message_num
, int $from_length
= 0
, int $subject_length
= 0
) : stdClass|falseGets information about the given message number by reading its headers.
imap
由 imap_open() 返回的 IMAP 流。
message_num
The message number
from_length
Number of characters for the fetchfrom
property.
Must be greater than or equal to zero.
subject_length
Number of characters for the fetchsubject
property
Must be greater than or equal to zero.
defaulthost
Returns false
on error or, if successful, the information in an object with following properties:
personal
, adl
,
mailbox
, and host
personal
, adl
,
mailbox
, and host
personal
, adl
,
mailbox
, and host
personal
, adl
,
mailbox
, and host
personal
, adl
,
mailbox
, and host
personal
, adl
,
mailbox
, and host
personal
,
adl
, mailbox
, and
host
R
if recent and seen, N
if recent and not seen, ' ' if not recent.
U
if not seen AND not recent, ' ' if seen
OR not seen and recent
F
if flagged, ' ' if not flagged
A
if answered, ' ' if unanswered
D
if deleted, ' ' if not deleted
X
if draft, ' ' if not draft
from_length
characters
subject_length
characters
版本 | 说明 |
---|---|
8.0.0 |
The unused defaulthost parameter has been removed.
|