about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-14 07:58:50 +0000
committerEric Wong <e@80x24.org>2014-04-14 08:04:16 +0000
commit6e517aa6dc310ec14c7f2e7cf5479d77f1be5069 (patch)
treebdd5e9b1b3c9179d9123e899294e55fddb508fb7 /lib
parent513defd67b678c8b8f2ab571e44d20a30b49c6f8 (diff)
downloadpublic-inbox-6e517aa6dc310ec14c7f2e7cf5479d77f1be5069.tar.gz
We do not have all messages in the top-level index
(and we need to adjust the test while we're at it).
Diffstat (limited to 'lib')
-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;