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:
authorHolger Dehnhardt <holger@dehnhardt.org>2020-08-19 19:48:30 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-09-02 11:01:22 +0300
commitb78ff33483d2c73b4d4f3dda2b0c6a9c4026d270 (patch)
treec9eaa3e7e9356b8af1173c9264009a8071ebd753 /lib/Contracts
parent81831da02a8da6c5b0f6b30e8ee6e6a13e674a64 (diff)
Allow toggeling of subscription status of mailboxes
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Holger Dehnhardt <holger@dehnhardt.org> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IMailManager.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php
index 9c470412b..e3b4b6a5b 100644
--- a/lib/Contracts/IMailManager.php
+++ b/lib/Contracts/IMailManager.php
@@ -196,4 +196,17 @@ interface IMailManager {
* @throws ServiceException
*/
public function deleteMailbox(Account $account, Mailbox $mailbox): void;
+
+ /**
+ * @param Account $account
+ * @param string $mailbox
+ * @param bool $subscribed
+ *
+ * @return Mailbox
+ * @throws ClientException
+ * @throws ServiceException
+ */
+ public function updateSubscription(Account $account,
+ Mailbox $mailbox,
+ bool $subscribed): Mailbox;
}