blob: 7d2405d849f4a5ad9d88f326d3423cceeff9aa6b [file] [log] [blame]
#!/usr/bin/perl -T
use lib '.'; use lib 't';
use SATest; sa_t_init("blocklist_autolearn");
use Test::More tests => 3;
# ---------------------------------------------------------------------------
%patterns = (
q{ USER_IN_BLOCKLIST }, 'blocklisted',
);
%anti_patterns = (
q{ autolearn=ham } => 'autolearned as ham'
);
tstprefs ('
blacklist_from *@ximian.com
');
ok (sarun ("-L -t < data/nice/001", \&patterns_run_cb));
ok_all_patterns();