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 f1837c8b949a2c487876ead84f1600d197cf3a7d..d6cff03768b056a66e2f58c136d9667f6310c6ae 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);
-                           $length += strlen($rn);
                         }
+                       $length += strlen($rn);
                     }