summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-08-14 08:13:23 +0000
committerthomascube <thomas@roundcube.net>2009-08-14 08:13:23 +0000
commitdc1dbc478dd9320c7e85da77e8ed5e657f3db1c2 (patch)
tree1eb2e794eb724c30ded0b53a5832789f81601412
parent7ef47e59a952b554f615ec96abb471c21a1b4e86 (diff)
Implemented new_messages plugin hook (#1486005)
-rw-r--r--CHANGELOG2
-rw-r--r--program/steps/mail/check_recent.inc3
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 6a790799a..09c2de7ed 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,8 @@
CHANGELOG RoundCube Webmail
===========================
+- Added 'new_messages' plugin hook (#1486005)
+- Added 'logout_after' plugin hook (#1486042)
- Added 'message_compose' hook
- Added 'imap_connect' hook (#1485956)
- Fix vcard_attachments plugin (#1486035)
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index 8d757d440..78b7fbbdf 100644
--- a/program/steps/mail/check_recent.inc
+++ b/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;