summaryrefslogtreecommitdiff
path: root/roundcubemail/program/lib
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-07 08:36:42 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-07-07 08:36:42 +0000
commit55200135e3eac05c9d307d2a733aff02c87faf61 (patch)
tree581d05580bb9c6cdc75bdda58ec821280ed26696 /roundcubemail/program/lib
parent47ef4c9af58c33bbdadb4301938de57219a35d85 (diff)
- Support %h variable in 'smtp_server' option (#1485766)
git-svn-id: https://svn.roundcube.net/trunk@2717 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/lib')
-rw-r--r--roundcubemail/program/lib/imap.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/roundcubemail/program/lib/imap.inc b/roundcubemail/program/lib/imap.inc
index c6b5000ff..7b40c020b 100644
--- a/roundcubemail/program/lib/imap.inc
+++ b/roundcubemail/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);