mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +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::UIDNEXT,
|
||||||
FolderStatus::UIDVALIDITY
|
FolderStatus::UIDVALIDITY
|
||||||
);
|
);
|
||||||
// RFC 4551
|
// RFC 4551 or RFC 5162
|
||||||
if ($this->hasCapability('CONDSTORE')) {
|
if ($this->hasCapability('CONDSTORE') || $this->hasCapability('QRESYNC')) {
|
||||||
$aStatusItems[] = FolderStatus::HIGHESTMODSEQ;
|
$aStatusItems[] = FolderStatus::HIGHESTMODSEQ;
|
||||||
}
|
}
|
||||||
// RFC 7889
|
// RFC 7889
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,8 @@ trait Folders
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// https://github.com/the-djmaze/snappymail/issues/1438
|
// 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 {
|
if (isset($oNamespaces->aShared[0])) try {
|
||||||
$oCollection = $this->MailClient()->Folders($oNamespaces->aShared[0]['prefix'], '*', $HideUnsubscribed);
|
$oCollection = $this->MailClient()->Folders($oNamespaces->aShared[0]['prefix'], '*', $HideUnsubscribed);
|
||||||
|
|
@ -78,6 +80,8 @@ trait Folders
|
||||||
}
|
}
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// https://github.com/the-djmaze/snappymail/issues/1438
|
// 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