Skip to content

Commit

Permalink
Check is QRESYNC ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgiz-badamshin committed Jul 20, 2017
1 parent f8edd99 commit 6eebef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Imap_Client/lib/Horde/Imap/Client/Base.php
Expand Up @@ -2790,7 +2790,7 @@ public function vanished($mailbox, $modseq, array $opts = array())
$this->login();

if (empty($opts['ids'])) {
if (!$this->_capability('QRESYNC')) {
if (!$this->_capability()->isEnabled('QRESYNC')) {
return $this->getIdsOb();
}
$opts['ids'] = $this->getIdsOb(Horde_Imap_Client_Ids::ALL);
Expand All @@ -2802,7 +2802,7 @@ public function vanished($mailbox, $modseq, array $opts = array())

$this->openMailbox($mailbox, Horde_Imap_Client::OPEN_AUTO);

if ($this->_capability('QRESYNC')) {
if ($this->_capability()->isEnabled('QRESYNC')) {
if (!$this->_mailboxOb()->getStatus(Horde_Imap_Client::STATUS_HIGHESTMODSEQ)) {
throw new Horde_Imap_Client_Exception(
Horde_Imap_Client_Translation::r("Mailbox does not support mod-sequences."),
Expand Down

0 comments on commit 6eebef0

Please sign in to comment.