about summary refs log tree commit homepage
path: root/t/filter_mirror.t
diff options
context:
space:
mode:
Diffstat (limited to 't/filter_mirror.t')
-rw-r--r--t/filter_mirror.t27
1 files changed, 1 insertions, 26 deletions
diff --git a/t/filter_mirror.t b/t/filter_mirror.t
index 694209d9..0e641a03 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 = "<html><body>hi</body></html>";
-        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 = mime_load 't/mda-mime.eml';
         is($f->ACCEPT, $f->delivery($email), 'accept any trash that comes');
 }