mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-09-06 05:25:33 +01:00
Add ability to filter by mailing list
This commit is contained in:
parent
cac162c264
commit
5a0489c61e
3 changed files with 26 additions and 0 deletions
|
@ -97,6 +97,20 @@ class Filter
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter a message if it was sent from a mailing list.
|
||||
*
|
||||
* @param $value The mailing list address
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function list($value)
|
||||
{
|
||||
$this->has("list:{$value}");
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue