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:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-01-08 13:29:33 +0300
committerGretaD <gretadoci@gmail.com>2021-01-14 15:11:42 +0300
commitdce93038e51b72600d584e18132291dd8c785ab2 (patch)
tree925873a62622672374c60ad5768fef7f3c22c2d5 /lib/Contracts
parent5d0409edbd154acba559ca24697d90eb6555da7f (diff)
Sent and request mdn (read confirmation)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IMailTransmission.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Contracts/IMailTransmission.php b/lib/Contracts/IMailTransmission.php
index 918556435..1c8242476 100644
--- a/lib/Contracts/IMailTransmission.php
+++ b/lib/Contracts/IMailTransmission.php
@@ -23,7 +23,9 @@ declare(strict_types=1);
namespace OCA\Mail\Contracts;
+use OCA\Mail\Account;
use OCA\Mail\Db\Alias;
+use OCA\Mail\Db\Mailbox;
use OCA\Mail\Db\Message;
use OCA\Mail\Exception\ClientException;
use OCA\Mail\Exception\SentMailboxNotSetException;
@@ -61,4 +63,14 @@ interface IMailTransmission {
* @throws ServiceException
*/
public function saveDraft(NewMessageData $message, Message $previousDraft = null): array;
+
+ /**
+ * Send a mdn message
+ *
+ * @param Account $account
+ * @param Mailbox $mailbox
+ * @param Message $message the message to send an mdn for
+ * @throws ServiceException
+ */
+ public function sendMdn(Account $account, Mailbox $mailbox, Message $message): void;
}