mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
Add labelAndArchive method
This commit is contained in:
parent
30d83f7682
commit
9a0d4f8a90
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue