From 2b4418b1ffc20b618dfce80a76af4a7fbdc5254d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 15 Jul 2016 01:10:24 +0100 Subject: [PATCH] Trash items --- src/GmailFilter.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/GmailFilter.php b/src/GmailFilter.php index e7d668e..11e5e15 100644 --- a/src/GmailFilter.php +++ b/src/GmailFilter.php @@ -180,6 +180,18 @@ class GmailFilter return $this; } + /** + * Mark a message to be trashed. + * + * @return $this + */ + public function trash() + { + $this->trash = TRUE; + + return $this; + } + /** * Add a condition. *