From 48dc727bbb0b1a66cce85955a7e4adede849b1e3 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Fri, 9 Jun 2017 10:25:27 +0000 Subject: [PATCH] SM doesn't know how to log in again on the same connection, so best to actually close the file handle as well git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@14662 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_general.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/imap_general.php b/functions/imap_general.php index 414e2a95..34ee5733 100755 --- a/functions/imap_general.php +++ b/functions/imap_general.php @@ -1063,8 +1063,10 @@ function sqimap_login ($username, $password, $imap_server_address, function sqimap_logout ($imap_stream) { /* Logout is not valid until the server returns 'BYE' * If we don't have an imap_ stream we're already logged out */ - if(isset($imap_stream) && $imap_stream) + if(isset($imap_stream) && $imap_stream) { sqimap_run_command($imap_stream, 'LOGOUT', false, $response, $message); + fclose($imap_stream); + } } /** -- 2.25.1