Skip to content

Commit

Permalink
Message::delete sets the FT_UID flag. Fixes #30 Fixes #46
Browse files Browse the repository at this point in the history
  • Loading branch information
cidtal committed Sep 12, 2014
1 parent 30531b9 commit 889b560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ddeboer/Imap/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function delete()
// 'deleted' header changed, force to reload headers, would be better to set deleted flag to true on header
$this->headers = null;

if (!\imap_delete($this->stream, $this->messageNumber)) {
if (!\imap_delete($this->stream, $this->messageNumber, \FT_UID)) {
throw new MessageDeleteException($this->messageNumber);
}
}
Expand Down

0 comments on commit 889b560

Please sign in to comment.