diff options
author | alecpl <alec@alec.pl> | 2009-07-07 08:36:42 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-07-07 08:36:42 +0000 |
commit | 72cd3c1a761fad73235cad32f240a114ba2941aa (patch) | |
tree | 9220255bf80d1181e72bbcfe57d37971af4a8ac1 /program/lib | |
parent | 16036b9c862f298927454235ce79b131df3f25bf (diff) |
- Support %h variable in 'smtp_server' option (#1485766)
Diffstat (limited to 'program/lib')
-rw-r--r-- | program/lib/imap.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc index c6b5000ff..7b40c020b 100644 --- a/program/lib/imap.inc +++ b/program/lib/imap.inc @@ -260,7 +260,6 @@ function iil_MultLine($fp, $line, $escape=false) { } $line = $a[1][0] . '"' . ($escape ? iil_Escape($out) : $out) . '"'; -// console('[...] '. $out); } return $line; } @@ -269,10 +268,12 @@ function iil_ReadBytes($fp, $bytes) { $data = ''; $len = 0; do { - $data .= fread($fp, $bytes-$len); + $d = fread($fp, $bytes-$len); + $data .= $d; if ($len == strlen($data)) { break; //nothing was read -> exit to avoid apache lockups } +// console('[...] '. $d); $len = strlen($data); } while ($len < $bytes); |