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-06-01 21:53:19 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-06-10 12:27:59 +0300
commit0da32c97f64e0cdf950368257447ec8fa6fe7fea (patch)
treee8caddaefcb971e17a83b32e60726d8cdeac568d /lib/Contracts
parentc149af8e36d5491b2a9bb0133495f289e00d6945 (diff)
Show each thread once per message list
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IMailManager.php25
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php
index 76eb2f1d5..1eafd7b32 100644
--- a/lib/Contracts/IMailManager.php
+++ b/lib/Contracts/IMailManager.php
@@ -110,11 +110,11 @@ interface IMailManager {
/**
* @param Account $account
- * @param int $messageId database message ID
+ * @param string $threadRootId thread root id
*
* @return Message[]
*/
- public function getThread(Account $account, int $messageId): array;
+ public function getThread(Account $account, string $threadRootId): array;
/**
* @param Account $sourceAccount
@@ -263,4 +263,25 @@ interface IMailManager {
* @throws ClientException if the given tag does not exist
*/
public function updateTag(int $id, string $displayName, string $color, string $userId): Tag;
+
+ /**
+ * @param Account $srcAccount
+ * @param Mailbox $srcMailbox
+ * @param Account $dstAccount
+ * @param Mailbox $dstMailbox
+ * @param string $threadRootId
+ * @return void
+ * @throws ServiceException
+ */
+ public function moveThread(Account $srcAccount, Mailbox $srcMailbox, Account $dstAccount, Mailbox $dstMailbox, string $threadRootId): void;
+
+ /**
+ * @param Account $account
+ * @param Mailbox $mailbox
+ * @param string $threadRootId
+ * @return void
+ * @throws ClientException
+ * @throws ServiceException
+ */
+ public function deleteThread(Account $account, Mailbox $mailbox, string $threadRootId): void;
}