imap_headers

(PHP 4, PHP 5)

imap_headersLiefert eine Zusammenfassung aller Nachrichtenköpfe eines Postfachs

Beschreibung

array imap_headers ( resource $imap_stream )

Diese Funktion liefert ein String-Array, das je Nachricht einen String mit vorformatierten Informationen aus dem Nachrichtenheader enthält.

Parameter-Liste

imap_stream

Eine von imap_open() zurückgegebene IMAP-Verbindung.

Rückgabewerte

Liefert ein Array aus Strings mit formatierten Headerinformationen. Das Array enthält ein Element für jede Nachricht im Postfach.

add a note add a note

User Contributed Notes 3 notes

up
3
paulwright75 at hotmail dot com
10 months ago
Ok, this page is driving me crazy. Parsing the lines returned in the array is simple enough but there is no definitions on what the flags mean. So I searched the web to find the answer and this is what I was able to gather:

A - Answered: email has been replied to
N - New: Recent and not seen
R - Recent: Recent and seen
U - Unread: The message has not been read yet
F - Flagged: Message is "flagged" for urgent/special attention
D - Deleted: Message is "deleted" for removal by later EXPUNGE
X - Draft: Message has not completed composition (marked as a draft).

please correct me if I am wrong...
up
0
antispam at katiheta dot net
8 months ago
Message flag descriptions can be found on official imap_headerinfo page (http://www.php.net/manual/en/function.imap-headerinfo.php) in "Return Value" paragraph.
up
0
mmuoio at gmail dot com
4 years ago
This function will not return a full subject line if it is longer than 25 characters.  I found this out after trying to search each header and move the email to a different folder depending on what the subject was (searching for year and project number).
To Top