(PHP 4, PHP 5, PHP 7)
imap_headerinfo — Read the header of the message
imap_headerinfo ( resource $imap_stream , int $msg_number [, int $fromlength = 0 [, int $subjectlength = 0 [, string $defaulthost = null ]]] ) : object
Gets information about the given message number by reading its headers.
imap_stream
An IMAP stream returned by imap_open().
msg_number
The message number
fromlength
Number of characters for the fetchfrom property. Must be greater than or equal to zero.
subjectlength
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 fromlength characters subjectlength characters
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.imap-headerinfo.php