From ba212558b86874d197c86e2acd0776b5b095ee5b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 5 Jul 2020 23:27:54 +0000 Subject: view: simplify eml_entry callers further This simplifies the primary callers of eml_entry while only making mknews.perl worse. --- Documentation/mknews.perl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index 4a5d0e56..f053e2bf 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -105,7 +105,8 @@ sub mime2html { my ($out, $eml, $ctx) = @_; my $smsg = $ctx->{smsg} = bless {}, 'PublicInbox::Smsg'; $smsg->populate($eml); - print $out PublicInbox::View::eml_entry($ctx, $eml, 1) or die; + $ctx->{msgs} = [ 1 ]; # for
in eml_entry + print $out PublicInbox::View::eml_entry($ctx, $eml) or die; } sub html_start { -- cgit v1.2.3-24-ge0c7