diff options
author | Eric Wong <e@yhbt.net> | 2020-06-01 10:06:52 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-03 04:04:21 +0000 |
commit | 7e782e8ff3ec64500913069a2efb5815fe711a36 (patch) | |
tree | 52ac6cf6ac5a8bbfae97ffd6cae2f160e4ee22d4 /Documentation/mknews.perl | |
parent | d32333a12ca46861fab82640c3697fdbca879bd2 (diff) | |
download | public-inbox-7e782e8ff3ec64500913069a2efb5815fe711a36.tar.gz |
To further simplify callers and avoid embarrasing memory explosions[1], we can finally eliminate this method in favor of smsg_eml. [1] commit 7d02b9e64455831d3bda20cd2e64e0c15dc07df5 ("view: stop storing all MIME objects on large threads") fixed a huge memory blowup.
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-x | Documentation/mknews.perl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl index 3bdebfce..965c30c1 100755 --- a/Documentation/mknews.perl +++ b/Documentation/mknews.perl @@ -102,9 +102,10 @@ sub mime2txt { } sub mime2html { - my ($out, $mime, $ctx) = @_; - my $smsg = bless { mime => $mime }, 'PublicInbox::Smsg'; - print $out PublicInbox::View::index_entry($smsg, $ctx, 1) or die; + my ($out, $eml, $ctx) = @_; + my $smsg = bless {}, 'PublicInbox::Smsg'; + $smsg->populate($eml); + print $out PublicInbox::View::eml_entry($ctx, $smsg, $eml, 1) or die; } sub html_start { |