Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/IMAP
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-05-28 10:59:18 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-05-28 10:59:18 +0300
commit4b5a47e727f9a7a6e27b00b7aab06f2e722018ce (patch)
tree827a5de0ba5408d3a633bd5cec236d64277cd0a0 /lib/IMAP
parentb14d78be4e3b413bfab35e2316c8c209b1c8d711 (diff)
Fix usage of wrong constant for sync new
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/IMAP')
-rw-r--r--lib/IMAP/Sync/Synchronizer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IMAP/Sync/Synchronizer.php b/lib/IMAP/Sync/Synchronizer.php
index ef1dcdf13..8145d3b1b 100644
--- a/lib/IMAP/Sync/Synchronizer.php
+++ b/lib/IMAP/Sync/Synchronizer.php
@@ -59,7 +59,7 @@ class Synchronizer {
int $criteria = Horde_Imap_Client::SYNC_NEWMSGSUIDS | Horde_Imap_Client::SYNC_FLAGSUIDS | Horde_Imap_Client::SYNC_VANISHEDUIDS): Response {
$mailbox = new Horde_Imap_Client_Mailbox($request->getMailbox());
try {
- if ($criteria & Horde_Imap_Client::SYNC_NEWMSGS) {
+ if ($criteria & Horde_Imap_Client::SYNC_NEWMSGSUIDS) {
$newUids = $this->getNewMessageUids($imapClient, $mailbox, $request);
} else {
$newUids = [];
@@ -99,7 +99,7 @@ class Synchronizer {
*/
private function getNewMessageUids(Horde_Imap_Client_Base $imapClient, Horde_Imap_Client_Mailbox $mailbox, Request $request): array {
$newUids = $imapClient->sync($mailbox, $request->getToken(), [
- 'criteria' => Horde_Imap_Client::SYNC_NEWMSGS,
+ 'criteria' => Horde_Imap_Client::SYNC_NEWMSGSUIDS,
])->newmsgsuids->ids;
return $newUids;
}