From ce8aadf8d4de3d764ac4474300923b4996946056 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Mon, 29 Apr 2019 10:38:41 -0500 Subject: [PATCH] oops: .eml/.msg Missing Not Operator This addresses a typo where we are missing a not operator in class MailFetcher when checking for no `$body` in the fetched attachments. This adds the not operator so that the `if()` statement is properly executed and we correctly set a fake body when there is none. --- include/class.mailfetch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.mailfetch.php b/include/class.mailfetch.php index 2db19fc7b..0faad06a5 100644 --- a/include/class.mailfetch.php +++ b/include/class.mailfetch.php @@ -701,7 +701,7 @@ class MailFetcher { $body = $this->fetchBody($mid, $info['index'].'.0', $info['encoding']); // Add fake body to make the parser happy - if ($body) + if (!$body) $body.="\n\nJunk"; $parser = new Mail_Parse($body); -- GitLab