]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/mda.t
remove most internal Email::MIME usage
[public-inbox.git] / t / mda.t
diff --git a/t/mda.t b/t/mda.t
index 03cc4bc3c444cbd0531b524c553f3f4d05be98e5..759c0b020abc661addd2752787e9c95c62ea0b5c 100644 (file)
--- a/t/mda.t
+++ b/t/mda.t
@@ -62,7 +62,7 @@ local $ENV{GIT_COMMITTER_NAME} = eval {
        use PublicInbox::MDA;
        use PublicInbox::Address;
        use Encode qw/encode/;
-       my $msg = mime_load 't/utf8.eml';
+       my $msg = eml_load 't/utf8.eml';
        my $from = $msg->header('From');
        my ($author) = PublicInbox::Address::names($from);
        my ($email) = PublicInbox::Address::emails($from);
@@ -229,7 +229,7 @@ EOF
                "learned ham idempotently ");
 
        # ensure trained email is filtered, too
-       my $mime = mime_load 't/mda-mime.eml';
+       my $mime = eml_load 't/mda-mime.eml';
        ($mid) = ($mime->header_raw('message-id') =~ /<([^>]+)>/);
        {
                $in = $mime->as_string;