mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-23 04:17:32 +00:00
e33e9edce4
Removed as this gets rendered in the XML file and causes Gmail to not recognise it.
15 lines
382 B
PHP
Executable file
15 lines
382 B
PHP
Executable file
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use Opdavies\GmailFilterBuilder\Builder;
|
|
|
|
if (file_exists(__DIR__.'/../../../../filters.php')) {
|
|
$filters = require(__DIR__.'/../../../../filters.php');
|
|
} elseif (file_exists(__DIR__.'/../filters.php')) {
|
|
$filters = require(__DIR__.'/../filters.php');
|
|
} else {
|
|
throw new \Exception('No filters.php file found.');
|
|
}
|
|
|
|
echo new Builder($filters);
|