Browse Source

And now for the other years of the sent_subfolder on cyrus

thomppj 23 years ago
parent
commit
cc34efd8dd
1 changed files with 6 additions and 1 deletions
  1. 6 1
      functions/imap_mailbox.php

+ 6 - 1
functions/imap_mailbox.php

@@ -28,7 +28,12 @@ function isSpecialMailbox( $box ) {
                 $i = strlen( $box );
             }
         } else {
-            $i = strlen( $box );
+            // Skip next second delimiter
+            $i = strpos( $sent_folder, $delimiter );
+            $i = strpos( $sent_folder, $delimiter, $i+ 1  );
+            if ( $i === FALSE ) {
+                $i = strlen( $box );
+            }
         }
     }