From: philippe_mingo Date: Thu, 4 Oct 2001 11:16:04 +0000 (+0000) Subject: In very special ocasions SM tries to swith to the None folder (don't know exactly... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;ds=sidebyside;h=dce206ab75c7291bf4c58a9348e6caa39ec60d5e;p=squirrelmail.git In very special ocasions SM tries to swith to the None folder (don't know exactly why). While we track down this I put a check in the select in order to avoid SM "crash". git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1541 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index a0d29cd4..0bdc5566 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -36,6 +36,9 @@ ******************************************************************************/ function sqimap_mailbox_select ($imap_stream, $mailbox, $hide=true, $recent=false) { global $auto_expunge; + + if( $mailbox == _("None") ) + return; fputs ($imap_stream, "a001 SELECT \"$mailbox\"\r\n"); $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);