mailparse_msg_parse
(PECL mailparse >= 0.9.0)
mailparse_msg_parse — Incrementally parse data into buffer
Description
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.
Parameters
-
mimemail
-
A valid MIME resource.
-
data
-
Return Values
Returns TRUE
on success or FALSE
on failure.
- 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.