mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-12 13:28:44 +00:00
wip
This commit is contained in:
parent
caa3767246
commit
ba5a972715
3 changed files with 43 additions and 7 deletions
|
|
@ -1,15 +1,17 @@
|
|||
<?php
|
||||
|
||||
use Opdavies\GmailFilterBuilder\Filter;
|
||||
use Opdavies\GmailFilterBuilder\Model\Filter;
|
||||
|
||||
require_once __DIR__ . '/vendor/autoload.php';
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
return [
|
||||
Filter::create()
|
||||
->from('foo@example.com')
|
||||
->labelAndArchive('Example'),
|
||||
->from('papercall.io')
|
||||
->subject('New Submission For Drupal Camp Bristol 2019')
|
||||
->labelAndArchive('DrupalCamp Bristol'),
|
||||
|
||||
Filter::create()
|
||||
->from('bar@example.com')
|
||||
->important(),
|
||||
($filter = Filter::create())
|
||||
->from('papercall.io')
|
||||
->negate($filter->subject('New Submission For Drupal Camp Bristol 2019'))
|
||||
->labelAndArchive('Deletable/Other notifications'),
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue