Check for CONDSTORE or QRESYNC to get the HIGHESTMODSEQ

This commit is contained in:
the-djmaze 2024-02-18 16:47:28 +01:00
parent 8a10d30f2a
commit 33de51b2d5
2 changed files with 6 additions and 2 deletions

View file

@ -135,8 +135,8 @@ trait Folders
FolderStatus::UIDNEXT,
FolderStatus::UIDVALIDITY
);
// RFC 4551
if ($this->hasCapability('CONDSTORE')) {
// RFC 4551 or RFC 5162
if ($this->hasCapability('CONDSTORE') || $this->hasCapability('QRESYNC')) {
$aStatusItems[] = FolderStatus::HIGHESTMODSEQ;
}
// RFC 7889

View file

@ -68,6 +68,8 @@ trait Folders
}
} catch (\Throwable $e) {
// https://github.com/the-djmaze/snappymail/issues/1438
// $oAccount->Domain()->ImapSettings()->disabled_capabilities[] = 'NAMESPACE';
// $this->DomainProvider()->Save($oAccount->Domain());
}
if (isset($oNamespaces->aShared[0])) try {
$oCollection = $this->MailClient()->Folders($oNamespaces->aShared[0]['prefix'], '*', $HideUnsubscribed);
@ -78,6 +80,8 @@ trait Folders
}
} catch (\Throwable $e) {
// https://github.com/the-djmaze/snappymail/issues/1438
// $oAccount->Domain()->ImapSettings()->disabled_capabilities[] = 'NAMESPACE';
// $this->DomainProvider()->Save($oAccount->Domain());
}
}