From: Michael M Slusarz Date: Wed, 15 Apr 2009 04:20:29 +0000 (-0600) Subject: Add notifications on poll actions. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c1960aae7e54b51bf735a88851e29d696d8abf99;p=horde.git Add notifications on poll actions. --- 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;