X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FContentId.pm;h=65691593abfcc36cb3cafef29420d627b84d07d6;hb=2a56039ff6a6a8d0b04437b5463c172ecab002c5;hp=0c4a8678beb02fa4db436ca12c55eda6bc0edc79;hpb=261f705649bf5bc9c1954b29cfdb3c894cf44be2;p=public-inbox.git diff --git a/lib/PublicInbox/ContentId.pm b/lib/PublicInbox/ContentId.pm index 0c4a8678..65691593 100644 --- a/lib/PublicInbox/ContentId.pm +++ b/lib/PublicInbox/ContentId.pm @@ -64,8 +64,7 @@ sub content_digest ($) { # if we got here, we've already got Message-ID reuse my %seen = map { $_ => 1 } @{mids($hdr)}; foreach my $mid (@{references($hdr)}) { - next if $seen{$mid}; - $dig->add("ref\0$mid\0"); + $dig->add("ref\0$mid\0") unless $seen{$mid}++; } # Only use Sender: if From is not present