Improved mailbox ETag

This commit is contained in:
the-djmaze 2023-03-13 09:56:35 +01:00
parent 2dbf192558
commit 59b3fe70b6
7 changed files with 26 additions and 47 deletions

View file

@ -65,7 +65,7 @@ trait Messages
// $oInfo = $this->MailClient()->FolderHash($oParams->sFolderName);
$oInfo = $this->ImapClient()->FolderStatusAndSelect($oParams->sFolderName);
$aRequestHash = \explode('-', $sHash);
$sFolderHash = $oInfo->getETag($this->getAccountFromToken()->IncLogin());
$sFolderHash = $oInfo->etag;
$sHash = $oParams->hash() . '-' . $sFolderHash;
if ($aRequestHash[1] == $sFolderHash) {
$this->verifyCacheByKey($sHash);