mailparse_msg_parse_file
(PHP 4 >= 4.0.7, PECL mailparse:0.9-2.1.1)
mailparse_msg_parse_file — Parses a file
Описание
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.
Список параметров
- filename
-
Path to the file holding the message. The file is opened and streamed through the parser.
Возвращаемые значения
Returns a MIME resource representing the structure, or FALSE on error.
- 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.