diff options
author | Holger Dehnhardt <holger@dehnhardt.org> | 2020-08-19 19:48:30 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-09-02 11:01:22 +0300 |
commit | b78ff33483d2c73b4d4f3dda2b0c6a9c4026d270 (patch) | |
tree | c9eaa3e7e9356b8af1173c9264009a8071ebd753 /lib/Contracts | |
parent | 81831da02a8da6c5b0f6b30e8ee6e6a13e674a64 (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.php | 13 |
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; } |