Skip to content

Commit

Permalink
[mms] Only refresh quota information when switching to a mailbox the …
Browse files Browse the repository at this point in the history
…first time.

see Bug #12907
  • Loading branch information
slusarz committed Feb 27, 2014
1 parent 5d93ee4 commit c2049df
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions imp/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v6.2.0-git
----------

[mms] Only refresh quota information when switching to a mailbox the first
time.
[mms] More efficiently store mailbox cache information in the session.
[mms] Load copy/move mailbox selection list on-demand in smartmobile view.
[mms] Cache results of inline image view status.
Expand Down
6 changes: 4 additions & 2 deletions imp/lib/Ajax/Application/Handler/Common.php
Expand Up @@ -37,8 +37,6 @@ public function poll()
* separate poll action because there are other tasks done when
* specifically requesting a poll. */

$this->_base->queue->quota($this->_base->indices->mailbox);

if ($this->_base->changed()) {
$this->_base->addTask('viewport', $this->_base->viewPortData(true));
}
Expand Down Expand Up @@ -122,6 +120,10 @@ public function viewPort()
$this->_base->addTask('viewport', $vp);
}

if ($vp_vars->checkcache) {
$this->_base->queue->quota($this->_base->indices->mailbox);
}

return $result;
}

Expand Down
2 changes: 0 additions & 2 deletions imp/lib/Ajax/Application/Handler/Dynamic.php
Expand Up @@ -392,8 +392,6 @@ public function listMailboxes()
array_unique(iterator_to_array($iterator, false))
);

$this->_base->queue->quota($this->_base->indices->mailbox);

if ($this->vars->initial) {
$session->start();
}
Expand Down
3 changes: 3 additions & 0 deletions imp/lib/Ajax/Application/ListMessages.php
Expand Up @@ -175,6 +175,9 @@ public function listMessages($args)

/* Actions only done on 'initial' request. */
if ($args['initial']) {
/* Load queue information on original request. */
$injector->getInstance('IMP_Ajax_Queue')->quota($mbox);

if (!$mbox->is_imap) {
$result->setMetadata('pop3', 1);
}
Expand Down
1 change: 1 addition & 0 deletions imp/package.xml
Expand Up @@ -33,6 +33,7 @@
</stability>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mms] Only refresh quota information when switching to a mailbox the first time.
* [mms] More efficiently store mailbox cache information in the session.
* [mms] Load copy/move mailbox selection list on-demand in smartmobile view.
* [mms] Cache results of inline image view status.
Expand Down

0 comments on commit c2049df

Please sign in to comment.