From: philippe_mingo Date: Thu, 17 Jan 2002 13:45:06 +0000 (+0000) Subject: Bugfix: Now special folders from sent subfolders plugin are correctly X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=dc7a6d34823df5d6b182b3ceafd5da71839889b0 Bugfix: Now special folders from sent subfolders plugin are correctly recognized. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2150 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index f8243c5e..f83ab6f5 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -24,11 +24,11 @@ function isSpecialMailbox( $box ) { if ( $move_to_sent ) { $i = strpos( $sent_folder, $delimiter, strlen( $folder_prefix ) ); } - + // echo '[' . substr( $sent_folder, 0, $i ) . '] (' . $box . ')'; $ret = ( (strtolower($box) == 'inbox') || ($box == $trash_folder && $move_to_trash) || - ( substr( $sent_folder, 0, max( $i, strlen( $box ) ) ) == $box && + ( substr( $sent_folder, 0, $i ) == substr( $box, 0, $i ) && $move_to_sent) || ($box == $draft_folder && $save_as_draft) );