thomas: server/kolab-resource-handlers/kolab-resource-handlers/resmgr kolabmailtransport.php, 1.3.2.5, 1.3.2.6
cvs at kolab.org
cvs at kolab.org
Wed Jul 19 19:52:18 CEST 2006
Author: thomas
Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/resmgr
In directory doto:/tmp/cvs-serv1245
Modified Files:
Tag: kolab_2_0_branch
kolabmailtransport.php
Log Message:
Don't add empty lines at the end of mails delivered via LMTP (Fixes Issue1042)
Index: kolabmailtransport.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/resmgr/kolabmailtransport.php,v
retrieving revision 1.3.2.5
retrieving revision 1.3.2.6
diff -u -d -r1.3.2.5 -r1.3.2.6
--- kolabmailtransport.php 22 May 2006 11:07:48 -0000 1.3.2.5
+++ kolabmailtransport.php 19 Jul 2006 17:52:16 -0000 1.3.2.6
@@ -103,8 +103,9 @@
*/
if( $this->got_newline && $data[0] == '.' ) $data = '.'.$data;
$data = str_replace("\n.", "\n..", $data);
- if( $data[count($data)] == "\n" ) $this->got_newline = true;
- else $this->got_newline = false;
+ $len = strlen($data);
+ if( $len > 0 )
+ $this->got_newline = ( $data[$len-1] == "\n" );
}
function data( $data) {
More information about the commits
mailing list