1 # Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
7 use_ok 'PublicInbox::Filter::Mirror';
9 my $f = PublicInbox::Filter::Mirror->new;
10 ok($f, 'created PublicInbox::Filter::Mirror object');
12 my $html_body = "<html><body>hi</body></html>";
16 content_type => 'text/html; charset=UTF-8',
23 content_type => 'text/plain',
24 encoding => 'quoted-printable',
29 my $email = Email::MIME->create(
31 From => 'a@example.com',
33 'Content-Type' => 'multipart/alternative'
37 is($f->ACCEPT, $f->delivery($email), 'accept any trash that comes');