about summary refs log tree commit homepage
path: root/Documentation/mknews.perl
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-05-07 21:05:50 +0000
committerEric Wong <e@yhbt.net>2020-05-09 08:59:10 +0000
commit46742d95647c7a80cb2f60d5c134717dd91e22e2 (patch)
tree43b6ef4aebba979e48eb9143cd491f1a5b3f7eea /Documentation/mknews.perl
parent3b1b7abf814dbc7f2a737b2ca0e12b0fa518ff44 (diff)
downloadpublic-inbox-46742d95647c7a80cb2f60d5c134717dd91e22e2.tar.gz
PublicInbox::Eml has enough functionality to replace the
Email::MIME-based PublicInbox::MIME.
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-xDocumentation/mknews.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl
index a9dede00..3bdebfce 100755
--- a/Documentation/mknews.perl
+++ b/Documentation/mknews.perl
@@ -5,7 +5,7 @@
 # this uses unstable internal APIs of public-inbox, and this script
 # needs to be updated if they change.
 use strict;
-use PublicInbox::MIME;
+use PublicInbox::Eml;
 use PublicInbox::View;
 use PublicInbox::MsgTime qw(msg_datestamp);
 use PublicInbox::MID qw(mids mid_escape);
@@ -76,7 +76,7 @@ sub release2mime {
         my ($release, $mtime_ref) = @_;
         my $f = "$dir/$release.eml";
         open(my $fh, '<', $f) or die "open($f): $!";
-        my $mime = PublicInbox::MIME->new(do { local $/; <$fh> });
+        my $mime = PublicInbox::Eml->new(\(do { local $/; <$fh> }));
         # Documentation/include.mk relies on mtimes of each .eml file
         # to trigger rebuild, so make sure we sync the mtime to the Date:
         # header in the .eml