Sfoglia il codice sorgente

Sent subfolder bugfix (again)

philippe_mingo 23 anni fa
parent
commit
0ca9a4a494
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      functions/imap_mailbox.php

+ 5 - 1
functions/imap_mailbox.php

@@ -23,8 +23,12 @@ function isSpecialMailbox( $box ) {
 
     if ( $move_to_sent  ) {
         $i = strpos( $sent_folder, $delimiter, strlen( $folder_prefix ) );
+        if ( $i === FALSE ) {
+            $i = strlen( $box );
+        }
+        
     }
-     // echo '[' . substr( $sent_folder, 0, $i ) . '] (' . $box . ')'; 
+    
     $ret = ( (strtolower($box) == 'inbox') ||
              ($box == $trash_folder &&
               $move_to_trash) ||