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>2020-02-20 18:12:11 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-02-24 09:12:16 +0300
commit46916ee4f396e71075fd228a87ef294e38825dea (patch)
treefbe43ebdd9862f3992ea60da7af40ea1c627a05e /lib/Contracts
parent5be88a693bf7e516b1159f3c0500302c0adbe514 (diff)
Make envelope lists more versatile
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Contracts')
-rw-r--r--lib/Contracts/IMailSearch.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Contracts/IMailSearch.php b/lib/Contracts/IMailSearch.php
index e3bc996c6..85213dc30 100644
--- a/lib/Contracts/IMailSearch.php
+++ b/lib/Contracts/IMailSearch.php
@@ -27,12 +27,25 @@ use OCA\Mail\Account;
use OCA\Mail\Db\Message;
use OCA\Mail\Exception\ClientException;
use OCA\Mail\Exception\ServiceException;
+use OCP\AppFramework\Db\DoesNotExistException;
interface IMailSearch {
/**
* @param Account $account
* @param string $mailboxName
+ * @param int $uid
+ *
+ * @return Message
+ * @throws DoesNotExistException
+ * @throws ClientException
+ * @throws ServiceException
+ */
+ public function findMessage(Account $account, string $mailboxName, int $uid): Message;
+
+ /**
+ * @param Account $account
+ * @param string $mailboxName
* @param string|null $filter
* @param string|null $cursor
*