Hopefully this fixes finally the '.' problem on single lines.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Oct 2002 10:11:19 +0000 (10:11 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Oct 2002 10:11:19 +0000 (10:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3809 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/deliver/Deliver_SendMail.class.php

index 92094d036f432dc12ea10ad5710e4b6377ba5692..15138c59aa1b80f7182ed1232cbe3c2396871646 100644 (file)
@@ -16,9 +16,7 @@ class Deliver_SendMail extends Deliver {
 
     function preWriteToStream(&$s) {
        if ($s) {
-          if ($s{0} == '.')   $s = '.' . $s;
-         $s = str_replace("\n.","\n..",$s);
-          $s = str_replace("\r\n", "\n", $s);
+         $s = str_replace(".\n",".\r\n",str_replace("\r\n", "\n", $s));
        }
     }