summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorazumakuniyuki <azumakuniyuki@gmail.com>2024-03-13 11:05:19 +0900
committerazumakuniyuki <azumakuniyuki@gmail.com>2024-03-13 11:05:19 +0900
commit556458c0a18efe64191a92ea8c4c5eec52fe1ff6 (patch)
tree04bfeaea9f6c9886118245e55197cc42a4dd21c9
parent56bd1c430551207a83df813dde32090306634aa8 (diff)
Tiny code improvement #508
-rw-r--r--lib/Sisimai/RFC5322.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Sisimai/RFC5322.pm b/lib/Sisimai/RFC5322.pm
index b74bfb88..9e94f5c7 100644
--- a/lib/Sisimai/RFC5322.pm
+++ b/lib/Sisimai/RFC5322.pm
@@ -88,12 +88,10 @@ sub received {
for my $e ( @$recvd ) {
# Look up each label defined in $label from Received header
- last unless ++$index < $range;
- next unless grep { lc $e eq $_ } @$label;
- my $f = lc $e;
+ last unless ++$index < $range; my $f = lc $e;
+ next unless grep { $f eq $_ } @$label;
- $token->{ $f } = $recvd->[$index + 1] || next;
- $token->{ $f } = lc $token->{ $f };
+ $token->{ $f } = lc $recvd->[$index + 1] || next;
$token->{ $f } =~ y/();//d;
next unless $f eq 'from';