From: philippe_mingo Date: Thu, 17 Jan 2002 13:37:19 +0000 (+0000) Subject: Bugfix. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=7980d56953a6e590191fb29ca2efd04545a2f8cb;hp=754e824b53f368adb41742b340802bdb1b50f63b Bugfix. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2149 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 3b0dfdd1..f8243c5e 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -21,12 +21,14 @@ function isSpecialMailbox( $box ) { $move_to_trash, $move_to_sent, $save_as_draft, $delimiter, $folder_prefix; - $i = strpos( $sent_folder, $delimiter, strlen( $folder_prefix ) ); - + if ( $move_to_sent ) { + $i = strpos( $sent_folder, $delimiter, strlen( $folder_prefix ) ); + } + $ret = ( (strtolower($box) == 'inbox') || ($box == $trash_folder && $move_to_trash) || - (substr( $sent_folder, 0, max( $i, strlen( $box ) ) ) == $box && + ( substr( $sent_folder, 0, max( $i, strlen( $box ) ) ) == $box && $move_to_sent) || ($box == $draft_folder && $save_as_draft) );