-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(imap): persist vanished messages immediately on EXAMINE commands
Signed-off-by: Richard Steinmetz <[email protected]>
- Loading branch information
Showing
3 changed files
with
96 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/** | ||
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
|
||
namespace OCA\Mail\Cache; | ||
|
||
use OCA\Mail\Account; | ||
use OCA\Mail\Db\MailboxMapper; | ||
use OCA\Mail\Db\MessageMapper; | ||
use OCP\ICache; | ||
|
||
class CacheFactory { | ||
public function __construct( | ||
private readonly MailboxMapper $mailboxMapper, | ||
private readonly MessageMapper $messageMapper, | ||
) { | ||
} | ||
|
||
public function newCache(Account $account, ICache $cache): Cache { | ||
return new Cache( | ||
$this->messageMapper, | ||
$this->mailboxMapper, | ||
$account, | ||
$cache, | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters