X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FView.pm;h=a6944b80bbed08ca41c702c234b1010571b1e5ac;hb=f37219b70b5ab83cd7740c4d533f1cf7e5049946;hp=64e73234f9ee2b17ca4efc4d5094d402426ee6d8;hpb=17c6b04327bac7debf5dbfa633a8fbdf3cd96873;p=public-inbox.git diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 64e73234..a6944b80 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -533,6 +533,7 @@ sub attach_link ($$$$;$) { my $nl = $idx eq '1' ? '' : "\n"; # like join("\n", ...) my $size = length($part->body); + delete $part->{bdy}; # save memory # hide attributes normally, unless we want to aid users in # spotting MUA problems: @@ -632,6 +633,7 @@ sub add_text_body { # callback for each_part attach_link($ctx, $ct, $p, $fn, $err); $$rv .= "\n"; } + delete $part->{bdy}; # save memory foreach my $cur (@sections) { if ($cur =~ /\A>/) { # we use a here to allow users to specify