gunnar: server/patches/horde-webmail/1.2.0/tg t_Kolab__Server_HK_GW_FixBodyHeaderBreakInTestDriver.diff, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Fri Mar 13 08:03:21 CET 2009
Author: gunnar
Update of /kolabrepository/server/patches/horde-webmail/1.2.0/tg
In directory doto:/tmp/cvs-serv17713
Added Files:
t_Kolab__Server_HK_GW_FixBodyHeaderBreakInTestDriver.diff
Log Message:
This is a fix that is containted within the PEAR Kolab_Server package which had not been yet ported over to the kolab-webclient release. It is irrelevant for the web client build as it only affects the test driver for unit testing and there is no unit testing for the web client. This patch does however complete synchronization between the horde-fw3 used as basis for releasing PEAR packages and the code we use in the kolab-webclient. And this in turn will finally allow us to resolve kolab/issue3293 (Big code duplication and code version messup: Horde libs in 2.2.1).
--- NEW FILE: t_Kolab__Server_HK_GW_FixBodyHeaderBreakInTestDriver.diff ---
From: Gunnar Wrobel <p at rdus.de>
Subject: [PATCH] t/Kolab_Server/HK/GW/FixBodyHeaderBreakInTestDriver
Fixes handling the line break between mail header and body in the IMAP test driver.
STATUS: MERGED
Signed-off-by: Gunnar Wrobel <p at rdus.de>
---
horde-webmail/lib/Horde/Kolab/IMAP/test.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/horde-webmail/lib/Horde/Kolab/IMAP/test.php b/horde-webmail/lib/Horde/Kolab/IMAP/test.php
index 5a804af..6e1f0e4 100644
--- a/horde-webmail/lib/Horde/Kolab/IMAP/test.php
+++ b/horde-webmail/lib/Horde/Kolab/IMAP/test.php
@@ -550,7 +550,7 @@ class Horde_Kolab_IMAP_test extends Horde_Kolab_IMAP {
*/
function appendMessage($msg)
{
- $split = strpos('\r\n\r\n', $msg);
+ $split = strpos($msg, "\r\n\r\n");
$mail = array('header' => substr($msg, 0, $split + 2),
'body' => substr($msg, $split + 3));
return $this->_appendMessage($mail);
--
tg: (11ec470..) t/Kolab_Server/HK/GW/FixBodyHeaderBreakInTestDriver (depends on: t/imp/H/GW/LoginRetries)
More information about the commits
mailing list