about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm4
1 files changed, 4 insertions, 0 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;