From ff735fb3a58de93a3f0dc9083fa777767a8a0900 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 28 May 2016 10:00:25 +0200 Subject: [PATCH] Protect INBOX folder even if protected_default_folders=false --- program/steps/settings/folders.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/steps/settings/folders.inc b/program/steps/settings/folders.inc index 034b8077c..c4d9124cb 100644 --- a/program/steps/settings/folders.inc +++ b/program/steps/settings/folders.inc @@ -271,7 +271,7 @@ function rcmail_subscription_form($attrib) foreach ($list_folders as $i => $folder) { $sub_key = array_search($folder['id'], $a_subscribed); $subscribed = $sub_key !== false; - $protected = $protect_default && isset($special_folders[$folder['id']]); + $protected = $folder['id'] == 'INBOX' || ($protect_default && isset($special_folders[$folder['id']])); $noselect = false; $classes = array();