diff -uNr mantis-0.19.2/core/mail_api.php mantis.new/core/mail_api.php --- mantis-0.19.2/core/mail_api.php 2005-02-12 14:02:17.591258328 +0100 +++ mantis.new/core/mail_api.php 2005-02-12 14:20:29.676236176 +0100 @@ -235,7 +235,8 @@ $t_msg = $t_pop3->getMsg($i); if (true == $t_mail_parse_mime && - true == isset( $t_headers['MIME-Version'] ) ) { + true == isset( $t_headers['MIME-Version'] ) && + 'multipart' == strtolower(substr($t_headers['Content-Type'],0,9) ) ) { $t_mail = mail_parse_content( $t_msg ); } else { $t_mail = $t_headers; @@ -274,7 +275,7 @@ { $t_parts = array ( mail_parse_part( $t_structure ) ); } - if ($t_parts[0]['Content-Type'] == 'text/plain') { + if (strtolower($t_parts[0]['Content-Type']) == 'text/plain') { $t_body = array_shift($t_parts); } else @@ -405,7 +406,7 @@ $t_bug_data->severity = 50; $t_bug_data->priority = gpc_get_int( 'priority', NORMAL ); $t_bug_data->summary = $p_mail['Subject']; - $t_bug_data->description = $p_mail['X-Mantis-Body']; + $t_bug_data->description = "Report from: ".$p_mail['From']."\n\n".$p_mail['X-Mantis-Body']; $t_bug_data->steps_to_reproduce = gpc_get_string( 'steps_to_reproduce', '' ); $t_bug_data->additional_information = $p_mail['X-Mantis-Complete'];