proxmox-spamassassin/upstream/t/blacklist_autolearn.t
Stoiko Ivanov 37ef577538 buildsys: drop upstream tarball and add extracted sources
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2021-03-24 18:19:35 +01:00

28 lines
448 B
Perl
Executable File

#!/usr/bin/perl -T
use lib '.'; use lib 't';
use SATest; sa_t_init("blacklist_autolearn");
use Test::More tests => 3;
# ---------------------------------------------------------------------------
%patterns = (
q{ USER_IN_BLACKLIST }, 'blacklisted',
);
%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();