Преглед на файлове

Sent subfolder bugfix (again)

philippe_mingo преди 23 години
родител
ревизия
0ca9a4a494
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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) ||