This is correctly fixed in Horde_Imap_Client, not here
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Jun 2009 16:44:57 +0000 (10:44 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 4 Jun 2009 16:45:01 +0000 (10:45 -0600)
imp/lib/Contents.php

index 5427595..e052100 100644 (file)
@@ -208,8 +208,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] . "\r\n"
-                : $res[$this->_index]['mimeheader'][$id] . "\r\n\r\n" . $res[$this->_index]['bodypart'][$id] . "\r\n";
+                ? $res[$this->_index]['bodypart'][$id]
+                : $res[$this->_index]['mimeheader'][$id] . $res[$this->_index]['bodypart'][$id];
         } catch (Horde_Imap_Client_Exception $e) {
             return '';
         }