mailparse_msg_parse_file
(PECL mailparse >= 0.9.0)
mailparse_msg_parse_file — Parses a file
Description
resource mailparse_msg_parse_file
( string
$filename
)Parses a file. This is the optimal way of parsing a mail file that you have on disk.
Parameters
-
filename
-
Path to the file holding the message. The file is opened and streamed through the parser.
Return Values
Returns a MIME resource representing the structure, or
FALSE
on error.
See Also
- mailparse_msg_free() - Frees a MIME resource
- mailparse_msg_create() - Create a mime mail resource
- 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
Коментарии
I just encountered an internal server error by simply calling
$eml = mailparse_msg_parse_file("$path/eml/$email_id.eml");
The error disappeared after adding
mailparse_msg_free($eml);
to the end of the script.
Without mailparse_msg_free i keep getting an internal server error.