From 25dc0ad7b801ce87552dc07fb28d9a3f719a82b0 Mon Sep 17 00:00:00 2001 From: thomppj Date: Fri, 18 Jan 2002 14:54:08 +0000 Subject: [PATCH] And now for the other years of the sent_subfolder on cyrus git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2162 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_mailbox.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions/imap_mailbox.php b/functions/imap_mailbox.php index 13922bd8..03bc10bd 100755 --- a/functions/imap_mailbox.php +++ b/functions/imap_mailbox.php @@ -28,7 +28,12 @@ function isSpecialMailbox( $box ) { $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 ); + } } } -- 2.25.1