Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
955e23c710
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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) {
    function sqimap_mailbox_select ($imap_stream, $mailbox, $hide=true, $recent=false) {
       global $auto_expunge;
       global $auto_expunge;
+
+      if( $mailbox == _("None") )
+          return;
       
       
       fputs ($imap_stream, "a001 SELECT \"$mailbox\"\r\n");
       fputs ($imap_stream, "a001 SELECT \"$mailbox\"\r\n");
              $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);
              $read = sqimap_read_data($imap_stream, "a001", true, $response, $message);