]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/OverIdx.pm
contentid: ignore duplicate References: headers
[public-inbox.git] / lib / PublicInbox / OverIdx.pm
index 189bd21d93bc6731192dd26a333cc79f04b89c3e..5f1007aa68767979cdc8dd0c9a2d8cd34dc886ae 100644 (file)
@@ -230,8 +230,7 @@ sub parse_references ($$$) {
                        warn "References: <$ref> too long, ignoring\n";
                        next;
                }
-               next if $seen{$ref}++;
-               push @keep, $ref;
+               push(@keep, $ref) unless $seen{$ref}++;
        }
        $smsg->{references} = '<'.join('> <', @keep).'>' if @keep;
        \@keep;