Correctly add spacing between header and body
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Mar 2009 00:34:09 +0000 (18:34 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Mar 2009 00:34:09 +0000 (18:34 -0600)
imp/lib/Contents.php

index 000fcf6..4ecb581 100644 (file)
@@ -224,7 +224,7 @@ class IMP_Contents
                 Horde_Imap_Client::FETCH_HEADERTEXT => array(array('peek' => true)),
                 Horde_Imap_Client::FETCH_BODYTEXT => array(array('peek' => true))
             ), array('ids' => array($this->_index)));
-            return $res[$this->_index]['headertext'][0] . $res[$this->_index]['bodytext'][0];
+            return $res[$this->_index]['headertext'][0] . "\r\n\r\n" . $res[$this->_index]['bodytext'][0];
         } catch (Horde_Imap_Client_Exception $e) {
             return '';
         }