finally managed to solve the bad Junk after literal output from the
[squirrelmail.git] / 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);
                     }