From a23731e4179495327b9ba8b34829678e036d30ca Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 29 Jul 2009 12:51:23 -0600 Subject: [PATCH] Add IMAP alerts to ajax notify stack. --- imp/ajax.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/imp/ajax.php b/imp/ajax.php index 3410d47ef..ad59f76d2 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -782,5 +782,12 @@ if ($errors) { $errors, __FILE__, __LINE__, PEAR_LOG_DEBUG); } +/* Display IMAP alerts. */ +if ($notify) { + foreach ($GLOBALS['imp_imap']->ob->alerts() as $alert) { + $notification->push($alert, 'horde.warning'); + } +} + // Send the final result. Horde::sendHTTPResponse(Horde::prepareResponse($result, $notify ? $GLOBALS['imp_notify'] : null), 'json'); -- 2.11.0