PHP.nl

imap_headerinfo

imap_headerinfo

Read the header of the message

 **imap_headerinfo** IMAP\Connection $imap int $message_num int $from_length int $subject_length

Gets information about the given message number by reading its headers.

message_numThe message number

from_length Number of characters for the property. Must be greater than or equal to zero. fetchfrom

subject_length Number of characters for the property Must be greater than or equal to zero. fetchsubject

Returns false on error or, if successful, the information in an object with following properties:

  • toaddress - full to: line, up to 1024 characters

  • to - an array of objects from the To: line, with the following properties: , , , and personal``adl``mailbox``host

  • fromaddress - full from: line, up to 1024 characters

  • from - an array of objects from the From: line, with the following properties: , , , and personal``adl``mailbox``host

  • ccaddress - full cc: line, up to 1024 characters

  • cc - an array of objects from the Cc: line, with the following properties: , , , and personal``adl``mailbox``host

  • bccaddress - full bcc: line, up to 1024 characters

  • bcc - an array of objects from the Bcc: line, with the following properties: , , , and personal``adl``mailbox``host

  • reply_toaddress - full Reply-To: line, up to 1024 characters

  • reply_to - an array of objects from the Reply-To: line, with the following properties: , , , and personal``adl``mailbox``host

  • senderaddress - full sender: line, up to 1024 characters

  • sender - an array of objects from the Sender: line, with the following properties: , , , and personal``adl``mailbox``host

  • return_pathaddress - full Return-Path: line, up to 1024 characters

  • return_path - an array of objects from the Return-Path: line, with the following properties: , , , and personal``adl``mailbox``host

  • remail -

  • date - The message date as found in its headers

  • Date - Same as date

  • subject - The message subject

  • Subject - Same as subject

  • in_reply_to -

  • message_id -

  • newsgroups -

  • followup_to -

  • references -

  • Recent - if recent and seen, if recent and not seen, ' ' if not recent. R``N

  • Unseen - if not seen AND not recent, ' ' if seen OR not seen and recent U

  • Flagged - if flagged, ' ' if not flagged F

  • Answered - if answered, ' ' if unanswered A

  • Deleted - if deleted, ' ' if not deleted D

  • Draft - if draft, ' ' if not draft X

  • Msgno - The message number

  • MailDate -

  • Size - The message size

  • udate - mail message date in Unix time

  • fetchfrom - from line formatted to fit characters from_length

  • fetchsubject - subject line formatted to fit characters subject_length

    imap_fetch_overview