From: Heiko Schlittermann (HS12-RIPE) Date: Thu, 14 Nov 2019 16:11:29 +0000 (+0800) Subject: Exipick: reorder chomp X-Git-Tag: exim-4.93-RC3~3 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=67fd284beb503f7895deee203bf7bd2df2c994cc;p=user%2Fhenk%2Fcode%2Fexim.git Exipick: reorder chomp --- 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 = < + 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 () { - 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($_ = ); + $_ = ; } while ($_ !~ /^\d+$/); $self->{_numrecips} = $_;