]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ContentHash.pm
www_stream: add trailing slash for help and color links
[public-inbox.git] / lib / PublicInbox / ContentHash.pm
index 838fdd6fcf654907af59ee1c451aebdaaa9b89b2..4dbe7b5049d57290f56d20e6f5a52d50612ed73b 100644 (file)
@@ -68,10 +68,9 @@ sub content_digest ($) {
 
        # Only use Sender: if From is not present
        foreach my $h (qw(From Sender)) {
-               my @v = $eml->header($h);
-               if (@v) {
-                       digest_addr($dig, $h, $_) foreach @v;
-               }
+               my @v = $eml->header($h) or next;
+               digest_addr($dig, $h, $_) foreach @v;
+               last;
        }
        foreach my $h (qw(Subject Date)) {
                my @v = $eml->header($h);