lib/PublicInbox/View.pm | 8 +++++--- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 92c202387446d7ca6630688817905e99c26a6a82..d3849dcc8978cd03b09f17cde3e4682ad2125e0b 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -301,7 +301,7 @@ '' . PRE_WRAP . $rv); } sub html_footer { - my ($mime, $purge) = @_; + my ($mime, $standalone) = @_; my %cc; # everyone else my $to; # this is the From address @@ -316,7 +316,7 @@ $cc{$dst} ||= $address; $to ||= $dst; } } - Email::Address->purge_cache if $purge; + Email::Address->purge_cache if $standalone; my $subj = $mime->header('Subject') || ''; $subj = "Re: $subj" unless $subj =~ /\bRe:/; @@ -329,7 +329,9 @@ my $cc = uri_escape_utf8(join(',', values %cc)); my $href = "mailto:$to?In-Reply-To=$irp&Cc=${cc}&Subject=$subj"; - "reply'; + my $idx = $standalone ? " index" : ''; + + "reply' . $idx; } sub linkify_refs {