Add ability to filter by mailing list

This commit is contained in:
Oliver Davies 2018-08-15 21:36:37 +01:00
parent cac162c264
commit 5a0489c61e
3 changed files with 26 additions and 0 deletions

View file

@ -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
*/