avoid a overly long line and a useless overwriting a scalar only to
extend another one with its value, really no biggie especially in the
context that's used, but its so easy to avoid that it still has some
merit.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
$param->{header} //= 1;
- return PMG::Postfix::postcat($param->{queue_id}, $param->{header}, $param->{body}, $param->{'decode-header'});
+ return PMG::Postfix::postcat($param->@{qw(queue_id header body decode-header)});
}});
__PACKAGE__->register_method ({
my $res = '';
while (defined(my $line = <$fh>)) {
if ($decode) {
- $line = mime_to_perl_string($line);
+ $res .= mime_to_perl_string($line);
+ } else {
+ $res .= $line;
}
- $res .= $line;
}
return $res;