about summary refs log tree commit homepage
path: root/lib/PublicInbox/ContentHash.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/ContentHash.pm')
-rw-r--r--lib/PublicInbox/ContentHash.pm7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/PublicInbox/ContentHash.pm b/lib/PublicInbox/ContentHash.pm
index 838fdd6f..4dbe7b50 100644
--- a/lib/PublicInbox/ContentHash.pm
+++ b/lib/PublicInbox/ContentHash.pm
@@ -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);