From 0dbccd34deff21cb16ade2d4577f8efcc04c760a Mon Sep 17 00:00:00 2001 From: teepe Date: Tue, 19 Feb 2002 23:15:59 +0000 Subject: [PATCH] fix of David Rees git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2481 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/functions/imap_general.php b/functions/imap_general.php index 332fee63..a92084cb 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -127,6 +127,15 @@ function sqimap_read_data_list ($imap_stream, $pre, $handle_errors, $read = fgets ($imap_stream, $bufsize); $data[] = $read; $read = fgets ($imap_stream, $bufsize); + } else if (preg_match("/^\* BYE \[ALERT\](.*)/", $read, $regs)) { + /* + It seems that the IMAP server has coughed a lung up + and hung up the connection. Print any info we have + and abort. + */ + echo _("Please contact your system administrator and report the following error:") . "
\n"; + echo "$regs[1]"; + exit(0); } else { $data[] = $read; $read = fgets ($imap_stream, $bufsize); -- 2.25.1