Explorar o código

finally managed to solve the bad Junk after literal output from the
imap-server

stekkel %!s(int64=23) %!d(string=hai) anos
pai
achega
c6c52f991f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      functions/smtp.php

+ 1 - 1
functions/smtp.php

@@ -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);
                     }