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:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-04-19 11:13:35 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-04-19 11:13:35 +0300
commit79198f8375f26425b2b9395a7014c3ffc6881583 (patch)
tree899699ba6b6a2473405ec665c267c0ed26ddc8c1 /lib/Contracts
parent36ed424ed6aae5d67829aacc04edf48d54e0d501 (diff)
Make it possible to create subfolders and show folder stats
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IMailManager.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Contracts/IMailManager.php b/lib/Contracts/IMailManager.php
index 84341cd0b..c94e7cb81 100644
--- a/lib/Contracts/IMailManager.php
+++ b/lib/Contracts/IMailManager.php
@@ -25,6 +25,7 @@ namespace OCA\Mail\Contracts;
use OCA\Mail\Account;
use OCA\Mail\Folder;
+use OCA\Mail\IMAP\FolderStats;
use OCA\Mail\IMAP\Sync\Request as SyncRequest;
use OCA\Mail\IMAP\Sync\Response as SyncResponse;
@@ -45,6 +46,14 @@ interface IMailManager {
public function createFolder(Account $account, string $name): Folder;
/**
+ * @param Account $account
+ * @param string $folderId
+ *
+ * @return FolderStats
+ */
+ public function getFolderStats(Account $account, string $folderId): FolderStats;
+
+ /**
* @param Account
* @param SyncRequest $syncRequest
* @return SyncResponse
@@ -60,4 +69,5 @@ interface IMailManager {
*/
public function moveMessage(Account $sourceAccount, string $sourceFolderId, int $messageId,
Account $destinationAccount, string $destFolderId);
+
}