Skip to content

Commit

Permalink
[mms] Fix expiring session cached mailbox data when mailbox informati…
Browse files Browse the repository at this point in the history
…on changes.
  • Loading branch information
slusarz committed Aug 6, 2014
1 parent c1dd0d4 commit 71b0f97
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions imp/docs/CHANGES
Expand Up @@ -2,6 +2,8 @@
v6.2.2-git
----------

[mms] Fix expiring session cached mailbox data when mailbox information
changes.
[mms] Fix updating viewport immediately after deleting messages on POP3
servers.

Expand Down
24 changes: 11 additions & 13 deletions imp/lib/Mailbox/SessionCache.php
Expand Up @@ -354,21 +354,19 @@ public function expire($entries, $mbox = null)
case self::CACHE_LABEL:
case self::CACHE_PREFTO:
case self::CACHE_UIDVALIDITY:
if ($mbox) {
$mbox = strval($mbox);
if (($c = isset($this->_cache[$val][$mbox])) ||
isset($this->_temp[$val][$mbox])) {
if ($c) {
$this->_changed = self::CHANGED_YES;
}
unset(
$this->_cache[$val][$mbox],
$this->_temp[$val][$mbox]
);
$mbox = $mbox
? array(strval($mbox))
: array_merge(array_keys($this->_cache), array_keys($this->_temp));
foreach ($mbox as $val2) {
if (isset($this->_cache[$val2][$val])) {
$this->_changed = self::CHANGED_YES;
}
break;
unset(
$this->_cache[$val2][$val],
$this->_temp[$val2][$val]
);
}
// Fall-through
break;

case self::CACHE_ICONHOOK:
case self::CACHE_SPECIALMBOXES:
Expand Down
2 changes: 2 additions & 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] Fix expiring session cached mailbox data when mailbox information changes.
* [mms] Fix updating viewport immediately after deleting messages on POP3 servers.
</notes>
<contents>
Expand Down Expand Up @@ -3721,6 +3722,7 @@
<date>2014-08-04</date>
<license uri="http://www.horde.org/licenses/gpl">GPL-2.0</license>
<notes>
* [mms] Fix expiring session cached mailbox data when mailbox information changes.
* [mms] Fix updating viewport immediately after deleting messages on POP3 servers.
</notes>
</release>
Expand Down

0 comments on commit 71b0f97

Please sign in to comment.