summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2019-11-15 00:11:29 +0800
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2019-11-16 10:28:38 +0800
commit67fd284beb503f7895deee203bf7bd2df2c994cc (patch)
tree112b8d4942b7fa3279d927b49c93b60c5803f044 /src
parent2156b9e96e10dba65081dbc688a98bf42c26d868 (diff)
Exipick: reorder chomp
Diffstat (limited to 'src')
-rw-r--r--src/src/exipick.src6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/src/exipick.src b/src/src/exipick.src
index e121c99c8..a63133353 100644
--- a/src/src/exipick.src
+++ b/src/src/exipick.src
@@ -25,6 +25,7 @@ my $p_version = "20100323.0";
my $p_usage = "Usage: $p_name [--help|--man|--version] (see --help for details)";
my $p_cp = <<EOM;
Copyright (c) 2003-2010 John Jetmore <jj33\@pobox.com>
+ Copyright (c) 2019 The Exim Maintainers
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -903,8 +904,8 @@ sub _parse_header {
$self->{_vars}{message_age} = time() - $self->{_vars}{received_time};
TAGGED: while (<I>) {
- chomp;
my ($tag, $arg) = /^-?(-\S+)(?:\s+(.*))?$/ or last TAGGED;
+ chomp;
if ($tag eq '-acl') {
my $t;
@@ -1007,6 +1008,7 @@ sub _parse_header {
# when we drop out of the while loop, we have the first line of the
# delivered tree in $_
do {
+ chomp;
if ($_ eq 'XX') {
; # noop
} elsif ($_ =~ s/^[YN][YN]\s+//) {
@@ -1014,7 +1016,7 @@ sub _parse_header {
} else {
return(0);
}
- chomp($_ = <I>);
+ $_ = <I>;
} while ($_ !~ /^\d+$/);
$self->{_numrecips} = $_;