mailparse_msg_parse
(PHP 4 >= 4.0.7, PECL mailparse:0.9-2.1.1)
mailparse_msg_parse — Incrementally parse data into buffer
Описание
bool mailparse_msg_parse
( resource $mimemail
, string $data
)
Incrementally parse data into the supplied mime mail resource.
This function allow you to stream portions of a file at a time, rather than read and parse the whole thing.
Список параметров
- mimemail
-
A valid MIME resource.
- data
-
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с почтой
- Mailparse
- mailparse_determine_best_xfer_encoding
- mailparse_msg_create
- mailparse_msg_extract_part_file
- mailparse_msg_extract_part
- mailparse_msg_extract_whole_part_file
- mailparse_msg_free
- mailparse_msg_get_part_data
- mailparse_msg_get_part
- mailparse_msg_get_structure
- mailparse_msg_parse_file
- mailparse_msg_parse
- mailparse_rfc822_parse_addresses
- mailparse_stream_encode
- mailparse_uudecode_all
Коментарии
This code written within a function may end up causing a 500 error with php 7 :
$mime = mailparse_msg_create();
mailparse_msg_parse($mime,$content);
exit;
Don't forget to free the ressource using mailparse_msg_free($mime) before the exit, apache/php does not seem to be able to do it automatically.