diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-05-31 12:59:34 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-06-07 14:34:04 +0300 |
commit | 0b0e90515137c4d16480d1c1064e9ccc72132416 (patch) | |
tree | eb98dfca4dc634c86eb2b792a49d18c06af38c8e /lib/Contracts | |
parent | 213c25884ed2162e8d25e8ca3b6a6c6255170ea1 (diff) |
Fix sending erroneous message repeatedly
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r-- | lib/Contracts/ILocalMailboxService.php | 3 | ||||
-rw-r--r-- | lib/Contracts/IMailTransmission.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Contracts/ILocalMailboxService.php b/lib/Contracts/ILocalMailboxService.php index 23ed0a8bd..117ff5f7f 100644 --- a/lib/Contracts/ILocalMailboxService.php +++ b/lib/Contracts/ILocalMailboxService.php @@ -29,6 +29,7 @@ namespace OCA\Mail\Contracts; use OCA\Mail\Account; use OCA\Mail\Db\LocalMessage; use OCA\Mail\Db\Recipient; +use OCA\Mail\Exception\ClientException; use OCA\Mail\Exception\ServiceException; interface ILocalMailboxService { @@ -78,6 +79,8 @@ interface ILocalMailboxService { /** * @param LocalMessage $message * @param Account $account + * @throws ClientException + * @throws ServiceException * @return void */ public function sendMessage(LocalMessage $message, Account $account): void; diff --git a/lib/Contracts/IMailTransmission.php b/lib/Contracts/IMailTransmission.php index 13a844c63..dc3536315 100644 --- a/lib/Contracts/IMailTransmission.php +++ b/lib/Contracts/IMailTransmission.php @@ -54,6 +54,8 @@ interface IMailTransmission { /** * @param Account $account * @param LocalMessage $message + * @throws ClientException + * @throws ServiceException * @return void */ public function sendLocalMessage(Account $account, LocalMessage $message): void; |