]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/precheck.t
www: drop --subject from "git send-email" instructions
[public-inbox.git] / t / precheck.t
index a8fd31b1ab33423d3261d807a554e08a7d3baa66..360dc74f88f748d0bd081929f6d786be193d3849 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2014-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2014-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
 use Test::More;
-use Email::Simple;
+use PublicInbox::Eml;
 use PublicInbox::MDA;
 
 sub do_checks {
@@ -27,7 +27,7 @@ sub do_checks {
 }
 
 {
-       my $s = Email::Simple->new(<<'EOF');
+       my $s = PublicInbox::Eml->new(<<'EOF');
 From: abc@example.com
 To: abc@example.com
 Cc: c@example.com, another-list@example.com
@@ -43,7 +43,7 @@ EOF
 }
 
 {
-       do_checks(Email::Simple->new(<<'EOF'));
+       do_checks(PublicInbox::Eml->new(<<'EOF'));
 From: a@example.com
 To: b@example.com
 Cc: c@example.com
@@ -57,7 +57,7 @@ EOF
 }
 
 {
-       do_checks(Email::Simple->new(<<'EOF'));
+       do_checks(PublicInbox::Eml->new(<<'EOF'));
 From: a@example.com
 To: b+plus@example.com
 Cc: John Doe <c@example.com>
@@ -72,7 +72,7 @@ EOF
 
 {
        my $recipient = 'b@example.com';
-       my $s = Email::Simple->new(<<'EOF');
+       my $s = PublicInbox::Eml->new(<<'EOF');
 To: b@example.com
 Cc: c@example.com
 Content-Type: text/plain