And now for the other years of the sent_subfolder on cyrus
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jan 2002 14:54:08 +0000 (14:54 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 18 Jan 2002 14:54:08 +0000 (14:54 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2162 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index 13922bd..03bc10b 100755 (executable)
@@ -28,7 +28,12 @@ function isSpecialMailbox( $box ) {
                 $i = strlen( $box );
             }
         } else {
                 $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 );
+            }
         }
     }
 
         }
     }