diff --git a/src/GmailFilter.php b/src/GmailFilter.php index bb8cad1..91e9887 100644 --- a/src/GmailFilter.php +++ b/src/GmailFilter.php @@ -117,6 +117,21 @@ class GmailFilter return $this; } + /** + * Label and archive a message. + * + * @param string $label + * The label to assign. + * + * @return $this + */ + public function labelAndArchive($label) + { + $this->label($label)->archive(); + + return $this; + } + /** * @return $this */