PHP.nl

imap_headers

imap_headers

Returns headers for all messages in a mailbox

 **imap_headers** IMAP\Connection $imap

Returns headers for all messages in a mailbox.

Returns an array of string formatted with header info. One element per mail message. Returns false on failure.