my ($from) = grep { /^from$/i } $msg->header_names;
$from = $msg->header_raw($from);
if ($ENV{LASTMSG_DEBUG}) {
- my $mid = grep { /^message-id$/i } $msg->header_names;
- say STDERR 'Processing ', $msg->header_raw('Message-ID'),
- " from $from" if $ENV{LASTMSG_DEBUG};
+ my ($mid) = grep { /^message-id$/i } $msg->header_names;
+ say STDERR 'Processing ', $msg->header_raw($mid), " from $from";
}
$process_message->($msg, $from);
}
@people = (@people, split /,/, $msg->header_raw($hdr));
}
if ($ENV{LASTMSG_DEBUG}) {
- my $mid = grep { /^message-id$/i } $msg->header_names;
+ my ($mid) = grep { /^message-id$/i } $msg->header_names;
say STDERR 'Processing ', $msg->header_raw($mid),
- ' sent to ', join ',', @people if $ENV{LASTMSG_DEBUG};
+ ' sent to ', join ',', @people;
}
$process_message->($msg, @people);
}