diff options
-rw-r--r-- | lib/PublicInbox/Feed.pm | 4 | ||||
-rw-r--r-- | t/cgi.t | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 75e5d953..16b860cb 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -56,6 +56,10 @@ sub generate_html_index { my $str = `git cat-file blob $_[0]`; return 0 if $? != 0; my $simple = Email::Simple->new($str); + if ($top && ($simple->header("In-Reply-To") || + $simple->header("References"))) { + return 0; + } $simple->body_set(""); # save some memory push @messages, $simple; 1; @@ -134,7 +134,6 @@ EOF From: You <you\@example.com> To: Me <me\@example.com> Cc: $addr -In-Reply-To: <blah\@example.com> Message-Id: <$slashy_mid> Subject: Re: hihi Date: Thu, 01 Jan 1970 00:00:01 +0000 |