From 6eebef0f95a50066c31bb8dad325a0a209be2887 Mon Sep 17 00:00:00 2001 From: "i.badamshin" Date: Thu, 20 Jul 2017 11:56:39 +0300 Subject: [PATCH] Check is QRESYNC ENABLED --- framework/Imap_Client/lib/Horde/Imap/Client/Base.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php index 24167a9c668..19694d68bd8 100644 --- a/framework/Imap_Client/lib/Horde/Imap/Client/Base.php +++ b/framework/Imap_Client/lib/Horde/Imap/Client/Base.php @@ -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); @@ -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."),