From a2208a7615f7e778673ac8ef674734a1a4b7f9a7 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 9 Feb 2012 13:22:36 +0000 Subject: - Add trash folder to exceptions list git-svn-id: https://svn.roundcube.net/trunk@5869 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/newmail_notifier/newmail_notifier.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/newmail_notifier/newmail_notifier.php b/plugins/newmail_notifier/newmail_notifier.php index bd61e3692..20ffac8ce 100644 --- a/plugins/newmail_notifier/newmail_notifier.php +++ b/plugins/newmail_notifier/newmail_notifier.php @@ -140,7 +140,9 @@ class newmail_notifier extends rcube_plugin // Get folders to skip checking for if (empty($this->exceptions)) { $this->delimiter = $this->rc->storage->get_hierarchy_delimiter(); - foreach (array('drafts_mbox', 'sent_mbox') as $folder) { + + $exceptions = array('drafts_mbox', 'sent_mbox', 'trash_mbox'); + foreach ($exceptions as $folder) { $folder = $this->rc->config->get($folder); if (strlen($folder) && $folder != 'INBOX') { $this->exceptions[] = $folder; -- cgit v1.2.3