From 1378e180b384fbfdd23419569d657ecdab7fd417 Mon Sep 17 00:00:00 2001 From: Thomas Imbreckx Date: Thu, 18 Sep 2014 17:07:03 +0200 Subject: [PATCH] Guess special use role for sub folders too --- lib/mailbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mailbox.php b/lib/mailbox.php index 05e586ff7..c4d53087d 100644 --- a/lib/mailbox.php +++ b/lib/mailbox.php @@ -243,7 +243,7 @@ class Mailbox { ); $lowercaseExplode = explode($this->delimiter, $this->getFolderId(), 2); - $lowercaseId = strtolower(reset($lowercaseExplode)); + $lowercaseId = strtolower(array_pop($lowercaseExplode)); $result = null; foreach ($specialFoldersDict as $specialRole => $specialNames) { if (in_array($lowercaseId, $specialNames)) {