From b826408b393f24dbe147718357e6bbdbd361b960 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 28 May 2009 06:56:36 -0600 Subject: [PATCH] Bug #8308: Correctly format canonical message parts --- imp/lib/Contents.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Contents.php b/imp/lib/Contents.php index 4ecb58171..d52c79543 100644 --- a/imp/lib/Contents.php +++ b/imp/lib/Contents.php @@ -201,8 +201,8 @@ class IMP_Contents try { $res = $GLOBALS['imp_imap']->ob->fetch($this->_mailbox, $query, array('ids' => array($this->_index))); return empty($options['mimeheaders']) - ? $res[$this->_index]['bodypart'][$id] - : $res[$this->_index]['mimeheader'][$id] . $res[$this->_index]['bodypart'][$id]; + ? $res[$this->_index]['bodypart'][$id] . "\r\n" + : $res[$this->_index]['mimeheader'][$id] . "\r\n\r\n" . $res[$this->_index]['bodypart'][$id] . "\r\n"; } catch (Horde_Imap_Client_Exception $e) { return ''; } -- 2.11.0