From b975da27ef82499b2cdcac5080141e7a8f745102 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 03 Mar 2010 07:20:58 -0500
Subject: [PATCH] Allow admins to define defaults for search modifiers (#1485897)

---
 config/main.inc.php.dist |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist
index d9bf340..819153f 100644
--- a/config/main.inc.php.dist
+++ b/config/main.inc.php.dist
@@ -475,5 +475,11 @@
 // Use MIME encoding (quoted-printable) for 8bit characters in message body
 $rcmail_config['force_7bit'] = FALSE;
 
+// Defaults of the search field configuration.
+// The array can contain a per-folder list of header fields which should be considered when searching
+// The entry with key '*' stands for all folders which do not have a specific list set.
+// Please note that folder names should to be in sync with $rcmail_config['default_imap_folders']
+$rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
+
 // end of config file
 ?>

--
Gitblit v1.9.1