summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-12 13:38:24 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-12 13:38:24 +0000
commit3d2d4e18fd03e76376a7558a9cec7a4fb924c431 (patch)
tree92053b5871cbd564ecf6994009b4b28d00fc918d /roundcubemail
parentd7aac1b622025273d2d86f48786b57d5b3fa365e (diff)
- Fix corrupted MIME headers of messages in Sent folder (#1485111)
git-svn-id: https://svn.roundcube.net/trunk@1516 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/CHANGELOG6
-rw-r--r--roundcubemail/program/include/rcube_mail_mime.php18
2 files changed, 24 insertions, 0 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG
index caa676012..8333d0903 100644
--- a/roundcubemail/CHANGELOG
+++ b/roundcubemail/CHANGELOG
@@ -1,6 +1,12 @@
CHANGELOG RoundCube Webmail
---------------------------
+2008/06/12 (alec)
+----------
+- Fix corrupted MIME headers of messages in Sent folder (#1485111)
+- Fixed bug in MDB2 package: http://pear.php.net/bugs/bug.php?id=14124
+- Use keypress instead of keydown to select list's row (#1484816)
+
2008/06/11 (alec)
----------
- Don't call expunge and don't remove message row after message move
diff --git a/roundcubemail/program/include/rcube_mail_mime.php b/roundcubemail/program/include/rcube_mail_mime.php
index 866786b93..79c80dd69 100644
--- a/roundcubemail/program/include/rcube_mail_mime.php
+++ b/roundcubemail/program/include/rcube_mail_mime.php
@@ -27,6 +27,9 @@
*/
class rcube_mail_mime extends Mail_mime
{
+
+ protected $mime_content;
+
/**
* Set build parameters
*/
@@ -201,6 +204,21 @@ class rcube_mail_mime extends Mail_mime
$result[] = substr($string, $p);
return $result;
}
+
+ /**
+ * Provides caching of body of constructed MIME Message to avoid
+ * duplicate construction of message and damage of MIME headers
+ *
+ * @return string The mime content
+ * @access public
+ * @override
+ */
+ public function &get($build_params = null)
+ {
+ if(empty($this->mime_content))
+ $this->mime_content = parent::get($build_params);
+ return $this->mime_content;
+ }
}