Skip to content

Commit

Permalink
newmail_notifier plugin: don't notify for junked messages. (#5767)
Browse files Browse the repository at this point in the history
When the mail server filters spam directly into the junk folder.
  • Loading branch information
rigrig authored and alecpl committed Oct 21, 2017
1 parent cf0a1d6 commit a1cbbf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/newmail_notifier/newmail_notifier.php
Expand Up @@ -66,7 +66,7 @@ function init()

if (!empty($this->opt)) {
// Get folders to skip checking for
$exceptions = array('drafts_mbox', 'sent_mbox', 'trash_mbox');
$exceptions = array('drafts_mbox', 'sent_mbox', 'trash_mbox', 'junk_mbox');
foreach ($exceptions as $folder) {
$folder = $this->rc->config->get($folder);
if (strlen($folder) && $folder != 'INBOX') {
Expand Down

0 comments on commit a1cbbf0

Please sign in to comment.