diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 17:07:20 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-03-26 17:21:33 +0300 |
commit | 2da6472563f6cb2226dc5ce053f11f1bbcdb7d10 (patch) | |
tree | 04e4706835e861b7f53439bb180b443c4cef8d22 /lib/Contracts | |
parent | 5beabd985681ed6c9bb58c874d8fa8516fbdfe92 (diff) |
Refactor message flag logic into a service method
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r-- | lib/Contracts/IMailManager.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php index 7d372d686..2b86e621c 100644 --- a/lib/Contracts/IMailManager.php +++ b/lib/Contracts/IMailManager.php @@ -115,4 +115,16 @@ interface IMailManager { */ public function markFolderAsRead(Account $account, string $folderId): void; + /** + * @param Account $account + * @param string $mailbox + * @param int $uid + * @param string $flag + * @param bool $value + * + * @throws ClientException + * @throws ServiceException + */ + public function flagMessage(Account $account, string $mailbox, int $uid, string $flag, bool $value): void; + } |