finally managed to solve the bad Junk after literal output from the
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 27 Aug 2002 16:36:10 +0000 (16:36 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 27 Aug 2002 16:36:10 +0000 (16:36 +0000)
imap-server

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3475 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index f1837c8..d6cff03 100644 (file)
@@ -193,8 +193,8 @@ function attachFiles ($fp, $session, $rn="\r\n", $checkdot = false) {
                     if (substr($tmp, $tmp_length - strlen($rn), strlen($rn)) != $rn) {
                         if ($fp) {
                             fputs($fp, $rn);
                     if (substr($tmp, $tmp_length - strlen($rn), strlen($rn)) != $rn) {
                         if ($fp) {
                             fputs($fp, $rn);
-                           $length += strlen($rn);
                         }
                         }
+                       $length += strlen($rn);
                     }
 
 
                     }