PHP.nl

imap_fetchheader

imap_fetchheader

Returns header for a message

 **imap_fetchheader** IMAP\Connection $imap int $message_num int $flags

This function causes a fetch of the complete, unfiltered format header of the specified message. RFC2822

message_numThe message number

flags The possible are:

  `flags`- - The            argument is a UID          `FT_UID``message_num`
    • The return string is in "internal" format, without any attempt to canonicalize to CRLF newlines FT_INTERNAL
    • The RFC822.TEXT should be pre-fetched at the same time. This avoids an extra RTT on an connection if a full message text is desired (e.g. in a "save to local file" operation) FT_PREFETCHTEXT

Returns the header of the specified message as a text string, return.falseforfailure.

imap_fetch_overview