X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fexipick.src;h=a631333534af8b82b9cd1d5bd13ec2e35626331a;hb=3be4dbba282a942ec2b67ba506a599f8dd12ca97;hp=e121c99c805af746a0b8827b2d2b5cf7cc9209fc;hpb=2156b9e96e10dba65081dbc688a98bf42c26d868;p=user%2Fhenk%2Fcode%2Fexim.git 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} = $_;