From 4d6bd355b40be22fb0d640b4e226e90b83eadf7d Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Thu, 17 Jan 2002 14:22:18 +0000 Subject: [PATCH] Sent subfolder bugfix (again) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2151 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index f83ab6f5..6581262f 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -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) || -- 2.25.1