mirror of
https://github.com/php/pecl-mail-mailparse.git
synced 2026-03-23 22:52:14 +01:00
minor cosmetics
This commit is contained in:
@@ -653,6 +653,7 @@ PHP_MINFO_FUNCTION(mailparse)
|
||||
{
|
||||
php_info_print_table_start();
|
||||
php_info_print_table_header(2, "mailparse support", "enabled");
|
||||
php_info_print_table_row(2, "Extension Version", mailparse_module_entry.version);
|
||||
php_info_print_table_row(2, "Revision", "$Revision$");
|
||||
php_info_print_table_end();
|
||||
|
||||
|
||||
7
try.php
7
try.php
@@ -16,12 +16,17 @@ if ($argv[1])
|
||||
else
|
||||
$filename = "yourmessage.txt";
|
||||
|
||||
if ($argv[2])
|
||||
$showpart = $argv[2];
|
||||
else
|
||||
$showpart = $_REQUEST['showpart'];
|
||||
|
||||
/* parse the message and return a mime message resource */
|
||||
$mime = mailparse_msg_parse_file($filename);
|
||||
|
||||
debug_zval_dump($mime);
|
||||
|
||||
/* return an array of message parts - this contsists of the names of the parts
|
||||
/* return an array of message parts - this consists of the names of the parts
|
||||
* only */
|
||||
$struct = mailparse_msg_get_structure($mime);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user