From 5bd067a2d40628fa5b7d730466238561289cbdce Mon Sep 17 00:00:00 2001 From: Alex <9432322+Limman@users.noreply.github.com> Date: Sat, 19 May 2018 21:18:55 +0300 Subject: [PATCH] Fixed issue with unsetFlag() (#99) Duplicated slashes were removed. --- src/IMAP/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IMAP/Message.php b/src/IMAP/Message.php index e14c7bf..df16279 100644 --- a/src/IMAP/Message.php +++ b/src/IMAP/Message.php @@ -700,7 +700,7 @@ public function setFlag($flag) { */ public function unsetFlag($flag) { $flag = "\\".trim(is_array($flag) ? implode(" \\", $flag) : $flag); - return imap_clearflag_full($this->client->getConnection(), $this->getUid(), "\\$flag", SE_UID); + return imap_clearflag_full($this->client->getConnection(), $this->getUid(), $flag, SE_UID); } /**