mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Check for CONDSTORE or QRESYNC to get the HIGHESTMODSEQ
This commit is contained in:
parent
8a10d30f2a
commit
33de51b2d5
2 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue