From 5ed13ec82d57e60d99629c25590e799bd5a4506b Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Thu, 31 Jan 2002 17:04:49 +0000 Subject: [PATCH] Added newmail dropdowns, and preparing for special folders only count mails. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2326 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/constants.php | 2 ++ plugins/administrator/defines.php | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/functions/constants.php b/functions/constants.php index ed75631f..10342589 100644 --- a/functions/constants.php +++ b/functions/constants.php @@ -37,6 +37,8 @@ define('SMPREF_LOC_RIGHT', 'right'); define('SMPREF_UNSEEN_NONE', 1); define('SMPREF_UNSEEN_INBOX', 2); define('SMPREF_UNSEEN_ALL', 3); +define('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders +define('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders define('SMPREF_UNSEEN_ONLY', 1); define('SMPREF_UNSEEN_TOTAL', 2); diff --git a/plugins/administrator/defines.php b/plugins/administrator/defines.php index 677e5862..c9abb7fb 100644 --- a/plugins/administrator/defines.php +++ b/plugins/administrator/defines.php @@ -11,6 +11,7 @@ * $Id$ */ +require_once( '../functions/constants.php' ); /* Define constants for the various option types. */ define('SMOPT_TYPE_UNDEFINED', -1); @@ -140,9 +141,14 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"), '$show_contain_subfolders_option' => array( 'name' => _("Show 'Contain Sub.' Option"), 'type' => SMOPT_TYPE_BOOLEAN ), '$default_unseen_notify' => array( 'name' => _("Default Unseen Notify"), - 'type' => SMOPT_TYPE_INTEGER ), + 'type' => SMOPT_TYPE_NUMLIST, + 'posvals' => array( SMPREF_UNSEEN_NONE => _("No Notification"), + SMPREF_UNSEEN_INBOX => _("Only INBOX"), + SMPREF_UNSEEN_ALL => _("All Folders")) ), '$default_unseen_type' => array( 'name' => _("Default Unseen Type"), - 'type' => SMOPT_TYPE_INTEGER ), + 'type' => SMOPT_TYPE_NUMLIST , + 'posvals' => array( SMPREF_UNSEEN_ONLY => _("Only Unseen"), + SMPREF_UNSEEN_TOTAL => _("Unseen and Total") ) ), '$auto_create_special' => array( 'name' => _("Auto Create Special Folders"), 'type' => SMOPT_TYPE_BOOLEAN ), '$default_use_javascript_addr_book' => array( 'name' => _("Default Javascript Adrressbook"), -- 2.25.1