In very special ocasions SM tries to swith to the None folder (don't know exactly...
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 4 Oct 2001 11:16:04 +0000 (11:16 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 4 Oct 2001 11:16:04 +0000 (11:16 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1541 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index a0d29cd4037c503eae0a14fd4a628a5659ba6a22..0bdc55660ac7b4274bdce3f0dc5ca4de051a633d 100755 (executable)
@@ -36,6 +36,9 @@
     ******************************************************************************/
    function sqimap_mailbox_select ($imap_stream, $mailbox, $hide=true, $recent=false) {
       global $auto_expunge;
     ******************************************************************************/
    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);
       
       fputs ($imap_stream, "a001 SELECT \"$mailbox\"\r\n");
              $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);