We do not have all messages in the top-level index
(and we need to adjust the test while we're at it).
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;
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