diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-15 12:24:38 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-30 19:16:24 +0300 |
commit | 15867528b25cad3e1262014d0fa4f967a73d64be (patch) | |
tree | 6dd7c46876325acf8aad147b9ef791a73376c102 /lib/Contracts | |
parent | fe074001833362fa1eb4d18576131b0678907fb5 (diff) |
Store special mailboxes as preference of the account
… instead of using a fragile autodetection every time we need one of
those. We will still try to auto-detect the mailboxes but the users will
have to option to change the destinations.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r-- | lib/Contracts/IMailManager.php | 1 | ||||
-rw-r--r-- | lib/Contracts/IMailTransmission.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php index 02c3254cc..ca17c0edf 100644 --- a/lib/Contracts/IMailManager.php +++ b/lib/Contracts/IMailManager.php @@ -145,6 +145,7 @@ interface IMailManager { * @param string $mailboxId * @param int $messageId * + * @throws ClientException * @throws ServiceException */ public function deleteMessage(Account $account, string $mailboxId, int $messageId): void; diff --git a/lib/Contracts/IMailTransmission.php b/lib/Contracts/IMailTransmission.php index f58ae37d6..918556435 100644 --- a/lib/Contracts/IMailTransmission.php +++ b/lib/Contracts/IMailTransmission.php @@ -25,6 +25,8 @@ namespace OCA\Mail\Contracts; use OCA\Mail\Db\Alias; use OCA\Mail\Db\Message; +use OCA\Mail\Exception\ClientException; +use OCA\Mail\Exception\SentMailboxNotSetException; use OCA\Mail\Exception\ServiceException; use OCA\Mail\Model\NewMessageData; use OCA\Mail\Model\RepliedMessageData; @@ -39,6 +41,7 @@ interface IMailTransmission { * @param Alias|null $alias * @param Message|null $draft * + * @throws SentMailboxNotSetException * @throws ServiceException */ public function sendMessage(NewMessageData $messageData, @@ -54,6 +57,7 @@ interface IMailTransmission { * * @return array * + * @throws ClientException if no drafts mailbox is configured * @throws ServiceException */ public function saveDraft(NewMessageData $message, Message $previousDraft = null): array; |