Browse Source

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".

philippe_mingo 24 years ago
parent
commit
955e23c710
1 changed files with 3 additions and 0 deletions
  1. 3 0
      functions/imap_mailbox.php

+ 3 - 0
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);