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 13922bd8b90b2e82406815972d1f649e6fd8debc..03bc10bd3e3050d3a8815797f648674c767dfd00 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 );
+            }
         }
     }
 
         }
     }