]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v2reindex.t
t/*.t: reduce dependency on Email::MIME APIs
[public-inbox.git] / t / v2reindex.t
index b6164ff810febd2936236e7ac2bd42f0d2e3bdc8..b97c6498c27b085c029b792392e10c5181b422a3 100644 (file)
@@ -24,15 +24,13 @@ my $agpl = do {
        <$fh>;
 };
 my $phrase = q("defending all users' freedom");
-my $mime = PublicInbox::MIME->create(
-       header => [
-               From => 'a@example.com',
-               To => 'test@example.com',
-               Subject => 'this is a subject',
-               Date => 'Fri, 02 Oct 1993 00:00:00 +0000',
-       ],
-       body => $agpl,
-);
+my $mime = PublicInbox::MIME->new(<<'EOF'.$agpl);
+From: a@example.com
+To: test@example.com
+Subject: this is a subject
+Date: Fri, 02 Oct 1993 00:00:00 +0000
+
+EOF
 my $minmax;
 my $msgmap;
 my ($mark1, $mark2, $mark3, $mark4);