Fix. get text part of email message with single part email.

This commit is contained in:
Alexey Melnichuk
2016-04-07 13:11:24 +03:00
parent 0080578811
commit c9ba145f1d
2 changed files with 57 additions and 31 deletions

View File

@@ -181,7 +181,7 @@ if (sizeof($result) != 0) {
//get email body (if any) for cover page
$fax_message = parse_message($connection, $email_id, FT_UID);
if ($fax_message == '') {
if ($fax_message != '') {
$fax_message = strip_tags($fax_message);
$fax_message = str_replace("\r\n\r\n","\r\n", $fax_message);
}