From dc1dbc478dd9320c7e85da77e8ed5e657f3db1c2 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 14 Aug 2009 04:13:23 -0400 Subject: [PATCH] Implemented new_messages plugin hook (#1486005) --- program/steps/mail/check_recent.inc | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc index 8d757d4..78b7fbb 100644 --- a/program/steps/mail/check_recent.inc +++ b/program/steps/mail/check_recent.inc @@ -47,6 +47,9 @@ if (!empty($_GET['_quota'])) $OUTPUT->command('set_quota', rcmail_quota_content($IMAP->get_quota())); + // trigger plugin hook + $RCMAIL->plugins->exec_hook('new_messages', array('mailbox' => $mbox_name, 'count' => $unread_count)); + // "No-list" mode, don't get messages if (empty($_GET['_list'])) continue; -- Gitblit v1.9.1