Hello, We use Rouncube with an IMAP Proxy (nginx).
nginx does not nicely handle bad username and password, on bad username and
password, it returns an IMAP internal server error and terminate the session.
This patch allows rouncube to not wait for the timeout and report the bad
logging.
Regards,
Thomas
--
Thomas Mangin
Technical Director
Exa Networks - AS30740
Address : 27-29 BD16 1PY UK Company # : 4922037
Office # : +44 845 145 1234 Inoc-DBA # : 30740*TOM
website : www.exa-networks.co.uk nic-handle : MANG-RIPE
PGP key : /pgp.html GPG key ID : 0xFB8B81A1
---
Index: ../roundcube/program/lib/imap.inc
===================================================================
--- ../roundcube/program/lib/imap.inc (revision 622)
+++ ../roundcube/program/lib/imap.inc (working copy)
@@ -130,6 +130,9 @@
if ($fp){
do{
$buffer = fgets($fp, 2048);
+ if ($buffer == False) {
+ break;
+ }
$line.=$buffer;
}while($buffer[strlen($buffer)-1]!="\n");
}
@@ -231,6 +234,9 @@
do{
$line = iil_ReadReply($conn->fp);
+ if ($line == False) {
+ break;
+ }
}while(!iil_StartsWith($line, "a001 "));
$a=explode(" ", $line);
if (strcmp($a[1],"OK")==0){
signature.asc
Description: OpenPGP digital signature
