From 26313db8f7d6682372754968b5ee62550be611f0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 7 Jan 2019 18:49:22 +0100 Subject: [PATCH] fix not working mail-integration because of "extra logging" tried to convert imap object to a string --- api/src/Mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index 37151b2b72..fc94a05a69 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -4675,7 +4675,7 @@ class Mail switch($part->getPrimaryType()) { case 'multipart': - if ($part->getDisposition() == 'attachment') continue; + if ($part->getDisposition() == 'attachment') continue 2; // +1 for switch switch($part->getSubType()) { case 'alternative': @@ -5609,7 +5609,7 @@ class Mail } if (!$_stream) { - error_log(__METHOD__.' ('.__LINE__.') '."[$this->icServer->ImapServerId][$_folder][$_uid][".(empty($_partID)?'NIL':$_partID)."]"); + //error_log(__METHOD__.' ('.__LINE__.') '."[{$this->icServer->ImapServerId}][$_folder][$_uid][".(empty($_partID)?'NIL':$_partID)."]"); $rawBody[$this->icServer->ImapServerId][$_folder][$_uid][(empty($_partID)?'NIL':$_partID)] = $body; } return $body;