Sent subfolder bugfix (again)
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 Jan 2002 14:22:18 +0000 (14:22 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 17 Jan 2002 14:22:18 +0000 (14:22 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2151 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/imap_mailbox.php

index f83ab6f..6581262 100755 (executable)
@@ -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) ||