minor cosmetics

This commit is contained in:
Wez Furlong
2004-04-08 09:57:30 +00:00
parent d7fefc05b6
commit 8eac61d1b8
2 changed files with 7 additions and 1 deletions

View File

@@ -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();

View File

@@ -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);