From 06a3032559dce451a11dfc42ccd55568eb653815 Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 14 Aug 2009 08:13:23 +0000 Subject: Implemented new_messages plugin hook (#1486005) git-svn-id: https://svn.roundcube.net/trunk@2860 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/check_recent.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roundcubemail/program') diff --git a/roundcubemail/program/steps/mail/check_recent.inc b/roundcubemail/program/steps/mail/check_recent.inc index 8d757d440..78b7fbbdf 100644 --- a/roundcubemail/program/steps/mail/check_recent.inc +++ b/roundcubemail/program/steps/mail/check_recent.inc @@ -47,6 +47,9 @@ foreach ($a_mailboxes as $mbox_name) { 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; -- cgit v1.2.3