From: Michael M Slusarz Date: Thu, 9 Dec 2010 19:20:59 +0000 (-0700) Subject: Bug #9433: Fix updating unseen count when emptying mailbox X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f39f492ff53ace78bf8db0ff45aa29c3aebbe053;p=horde.git Bug #9433: Fix updating unseen count when emptying mailbox --- diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index 65fe50f67..bb87a471b 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -191,6 +191,8 @@ class IMP_Ajax_Application extends Horde_Core_Ajax_Application * entries: *
      * 'mbox' - (string) The mailbox that was emptied.
+     * 'poll' - (array) Mailbox names as the keys, number of unseen messages
+     *          as the values.
      * 
*/ public function emptyMailbox() @@ -203,6 +205,7 @@ class IMP_Ajax_Application extends Horde_Core_Ajax_Application $result = new stdClass; $result->mbox = $this->_vars->mbox; + $result->poll = array($this->_vars->mbox => 0); return $result; }