And now for the other years of the sent_subfolder on cyrus
[squirrelmail.git] / functions / imap_mailbox.php
index 13922bd..03bc10b 100755 (executable)
@@ -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 );
+            }
         }
     }