From c1960aae7e54b51bf735a88851e29d696d8abf99 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 14 Apr 2009 22:20:29 -0600 Subject: [PATCH] Add notifications on poll actions. --- imp/ajax.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imp/ajax.php b/imp/ajax.php index ac4716cdb..e87a24010 100644 --- a/imp/ajax.php +++ b/imp/ajax.php @@ -646,6 +646,7 @@ case 'ModifyPollFolder': } $add = Util::getPost('add'); + $display_folder = IMP::displayFolder($mbox); $imptree = IMP_Imap_Tree::singleton(); @@ -658,8 +659,10 @@ case 'ModifyPollFolder': if ($info = $imptree->getElementInfo($mbox)) { $result->poll = array($mbox => $info['unseen']); } + $notification->push(sprintf(_("\"%s\" mailbox now polled for new mail."), $display_folder), 'horde.success'); } else { $imptree->removePollList($mbox); + $notification->push(sprintf(_("\"%s\" mailbox no longer polled for new mail."), $display_folder), 'horde.success'); } break; -- 2.11.0