From 46916ee4f396e71075fd228a87ef294e38825dea Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 20 Feb 2020 16:12:11 +0100 Subject: Make envelope lists more versatile Signed-off-by: Christoph Wurst --- lib/Contracts/IMailSearch.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/Contracts') 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,9 +27,22 @@ 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 -- cgit v1.2.3