about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-01 10:06:52 +0000
committerEric Wong <e@yhbt.net>2020-06-03 04:04:21 +0000
commit7e782e8ff3ec64500913069a2efb5815fe711a36 (patch)
tree52ac6cf6ac5a8bbfae97ffd6cae2f160e4ee22d4 /lib/PublicInbox/Feed.pm
parentd32333a12ca46861fab82640c3697fdbca879bd2 (diff)
downloadpublic-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 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index b770a350..4c1056b4 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -53,9 +53,9 @@ sub new_html_i {
         my ($nr, $ctx) = @_;
         my $msgs = $ctx->{msgs};
         while (my $smsg = shift @$msgs) {
-                my $m = $ctx->{-inbox}->smsg_mime($smsg) or next;
-                my $more = scalar @$msgs;
-                return PublicInbox::View::index_entry($m, $ctx, $more);
+                my $eml = $ctx->{-inbox}->smsg_eml($smsg) or next;
+                return PublicInbox::View::eml_entry($ctx, $smsg, $eml,
+                                                        scalar @$msgs);
         }
         PublicInbox::View::pagination_footer($ctx, './new.html');
 }