Skip to content

Commit

Permalink
Merge pull request #54 from ctalbot/ctalbot-use-uid-msg-delete
Browse files Browse the repository at this point in the history
Message::delete sets the FT_UID flag.  Fixes #30 Fixes #46
  • Loading branch information
ddeboer committed Sep 12, 2014
2 parents 30531b9 + 889b560 commit aa4e208
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 aa4e208

Please sign in to comment.