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>2017-08-29 16:53:36 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2017-08-29 16:53:36 +0300
commit2cd27506cdaf1716d730bb4ac93acdadc8e77164 (patch)
tree590aea886e93b574e3fd296dd2d911d2599252e8 /lib/Mailbox.php
parentb9793e445d271d513d295c840b8e47c5874ca526 (diff)
Add integration tests for replies and reply subjects
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Mailbox.php')
-rw-r--r--lib/Mailbox.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Mailbox.php b/lib/Mailbox.php
index 3c8d0f563..d817872cb 100644
--- a/lib/Mailbox.php
+++ b/lib/Mailbox.php
@@ -428,15 +428,17 @@ class Mailbox implements IMailBox {
/**
* @param string $rawBody
* @param array $flags
+ * @return array<int> UIDs
*/
public function saveMessage($rawBody, $flags = []) {
-
- $this->conn->append($this->mailBox, [
+ $uids = $this->conn->append($this->mailBox, [
[
'data' => $rawBody,
'flags' => $flags
]
- ]);
+ ])->ids;
+
+ return reset($uids);
}
/**