From 3c7a04f90387788c130f1839b32b3d0e89ccec77 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 24 Jun 2014 12:36:16 +0000 Subject: [PATCH] try to cope with not set content-transfer-encoding --- mail/inc/class.mail_activesync.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_activesync.inc.php b/mail/inc/class.mail_activesync.inc.php index fbf795afdd..95b6c82f5c 100644 --- a/mail/inc/class.mail_activesync.inc.php +++ b/mail/inc/class.mail_activesync.inc.php @@ -615,7 +615,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send { $mailObject->IsHTML($message->ctype_secondary=='html'?true:false); // we decode the body ourself - $message->body = $this->mail->decodeMimePart($message->body,($message->headers['content-transfer-encoding']?$message->headers['content-transfer-encoding']:'base64')); + $message->body = $this->mail->decodeMimePart($message->body,($message->headers['content-transfer-encoding']?$message->headers['content-transfer-encoding']:'WeDontKnowTheEncoding')); $mailObject->Body = $body = $message->body; $simpleBodyType = ($message->ctype_secondary=='html'?'text/html':'text/plain'); if ($this->debugLevel>0) debugLog("IMAP-Sendmail: fetched simple body as ".($message->ctype_secondary=='html'?'html':'text'));