From 67fd284beb503f7895deee203bf7bd2df2c994cc Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Fri, 15 Nov 2019 00:11:29 +0800 Subject: [PATCH] Exipick: reorder chomp --- src/src/exipick.src | 6 ++++-- 1 file 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 = < + 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} = $_; -- 2.25.1