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...
PHP.mk документација
imap_headers
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
function.imap-headers.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
function.imap-headers.php
imap_headers
Референца за `function.imap-headers.php` со подобрена типографија и навигација.
imap_headers
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_headers — Враќа заглавија за сите пораки во сандачето
= NULL
Враќа заглавија за сите пораки во сандачето.
Вратени вредности
Враќа низа од низи форматирани со информации за заглавието. Еден елемент по порака. Враќа false при неуспех.
Дневник на промени
| Верзија | = NULL |
|---|---|
| 8.1.0 |
На imap параметарот очекува IMAP\Connection
инстанца сега; претходно, валидна imap resource се очекуваше.
|
Белешки од корисници 5 белешки
paulwright75 на hotmail точка com ¶
12 години пред
Анонимен ¶
пред 4 години
the format returned is very fixed:
FLAGS (space) NUMBER (*) DATE (space) SENDER (space) SUBJECT (space) LENGTH
NUMBER will be a left-padded string of up to 4 digits + ")", starting with 5 digits, it is those 5 digits (without the ")")
DATE will be a left-padded string like " 2-Apr-2021" or a non-padded string like "13-Apr-2021"
SENDER is 20 chars long
SUBJECT is 25 chars long
LENGTH is a string like "(1248 chars)" , however it allows more digits and is not padded.
webmaster на RealityRipple точка com ¶
пред 7 години
Just a helpful hint, many IMAP servers will include non-standard flags in curly braces before the subject in the response of this function. Pretty sure this is the only way to determine if a message has been forwarded, for example, when using the IMAP functions. The first flag (or more) may be prefixed with a dollar sign ($). It's (probably) likely that any such flags received by a server can be passed through imap_append to that server, as well.
mmuoio на gmail точка com ¶
пред 16 години
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).
antispam на katiheta точка net ¶
12 години пред
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.