X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Ffilter_mirror.t;h=5bc7f3f406d8c29a0fdc50ef7ce2c45c35acc085;hb=352956bcf1933bdaeba631deb4ade7dc7fd754b1;hp=694209d9e07076f5e404d1ade759ccd58886f9f4;hpb=5d8dbb4aca5afcc6b98a4d951f03003fb7eaf356;p=public-inbox.git diff --git a/t/filter_mirror.t b/t/filter_mirror.t index 694209d9..5bc7f3f4 100644 --- a/t/filter_mirror.t +++ b/t/filter_mirror.t @@ -9,32 +9,7 @@ use_ok 'PublicInbox::Filter::Mirror'; my $f = PublicInbox::Filter::Mirror->new; ok($f, 'created PublicInbox::Filter::Mirror object'); { - my $email = mime_load 't/filter_mirror.eml', sub { - my $html_body = "hi"; - my $parts = [ - Email::MIME->create( - attributes => { - content_type => 'text/html; charset=UTF-8', - encoding => 'base64', - }, - body => $html_body, - ), - Email::MIME->create( - attributes => { - content_type => 'text/plain', - encoding => 'quoted-printable', - }, - body => 'hi = "bye"', - ) - ]; - Email::MIME->create( - header_str => [ - From => 'a@example.com', - Subject => 'blah', - 'Content-Type' => 'multipart/alternative' - ], - parts => $parts, - )}; # mime_laod sub + my $email = eml_load 't/mda-mime.eml'; is($f->ACCEPT, $f->delivery($email), 'accept any trash that comes'); }