diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-09-04 18:05:19 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-09-05 14:45:50 +0300 |
commit | d18ef16578dc34ffd67e48bc5c61654e55461ce9 (patch) | |
tree | 0fb85d03cba26c56be550b2cba5072dd6aca4e91 /lib/Mailbox.php | |
parent | eec81c6c38259c0edc843018581a1f1bd1ab280a (diff) |
Move message sending and draft saving code
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Mailbox.php')
-rw-r--r-- | lib/Mailbox.php | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/lib/Mailbox.php b/lib/Mailbox.php index 506425d55..eac4f6754 100644 --- a/lib/Mailbox.php +++ b/lib/Mailbox.php @@ -426,6 +426,8 @@ class Mailbox implements IMailBox { * @param string $rawBody * @param array $flags * @return array<int> UIDs + * + * @deprecated only used for testing */ public function saveMessage($rawBody, $flags = []) { $uids = $this->conn->append($this->mailBox, [ @@ -439,27 +441,6 @@ class Mailbox implements IMailBox { } /** - * Save draft - * - * @param string $rawBody - * @return int UID of the saved draft - */ - public function saveDraft($rawBody) { - - $uids = $this->conn->append($this->mailBox, - [ - [ - 'data' => $rawBody, - 'flags' => [ - Horde_Imap_Client::FLAG_DRAFT, - Horde_Imap_Client::FLAG_SEEN - ] - ] - ]); - return $uids->current(); - } - - /** * @param int $uid * @param string $flag * @param boolean $add |