From e6b7a7f5f70fb89a54ff158bc6c8b564149947e5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Apr 2020 21:16:13 +0000 Subject: t/*.t: reduce dependency on Email::MIME APIs Instead, favor PublicInbox::MIME->new for non-attachment emails. We may support alternatives to Email::MIME down the line. We'll still keep Email::MIME->create to deal with attachments, for now, but there's also a fair amount of test duplication we should eliminate, later. --- t/nntpd.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't/nntpd.t') diff --git a/t/nntpd.t b/t/nntpd.t index 5a3a62fb..4993b29f 100644 --- a/t/nntpd.t +++ b/t/nntpd.t @@ -7,7 +7,7 @@ use PublicInbox::TestCommon; use PublicInbox::Spawn qw(which); require_mods(qw(DBD::SQLite)); require PublicInbox::InboxWritable; -use Email::Simple; +use PublicInbox::MIME; use IO::Socket; use Socket qw(IPPROTO_TCP TCP_NODELAY); use Net::NNTP; @@ -57,7 +57,7 @@ $ibx = PublicInbox::Inbox->new($ibx); # ensure successful message delivery { - my $mime = Email::MIME->new(<new(< From: =?utf-8?Q?El=C3=A9anor?= Cc: $addr -- cgit v1.2.3-24-ge0c7