Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 17:07:20 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-26 17:21:33 +0300
commit2da6472563f6cb2226dc5ce053f11f1bbcdb7d10 (patch)
tree04e4706835e861b7f53439bb180b443c4cef8d22 /lib/Contracts
parent5beabd985681ed6c9bb58c874d8fa8516fbdfe92 (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.php12
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;
+
}