blob: 4d56dd124bc76cfd7929eee2c65aecb1b95dd405 [file] [log] [blame]
#!/usr/bin/perl -T
use lib '.'; use lib 't';
use SATest; sa_t_init("stripmarkup");
use Test::More tests => 4;
# ---------------------------------------------------------------------------
%patterns = (
q{ Content-Type: text/html }, 'contenttype',
q{
Sender: pertand@email.mondolink.com
Content-Type: text/html
<HTML></P>
}, 'startofbody',
q{Subject: "100% HERBALSENSATION"}, 'subj',
);
tstprefs ( "
rewrite_header subject *****SPAM*****
" );
ok (sarun ("-d < data/spam/003", \&patterns_run_cb));
ok_all_patterns();