diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-29 16:53:36 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-08-29 16:53:36 +0300 |
commit | 2cd27506cdaf1716d730bb4ac93acdadc8e77164 (patch) | |
tree | 590aea886e93b574e3fd296dd2d911d2599252e8 /lib/Mailbox.php | |
parent | b9793e445d271d513d295c840b8e47c5874ca526 (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.php | 8 |
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); } /** |