don't use Data::Dumper
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@172 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
891778b175
commit
2a76892570
2
Changes
2
Changes
@ -1,5 +1,7 @@
|
||||
0.27
|
||||
|
||||
Take out Data::Dumper to save a few bytes of memory
|
||||
|
||||
Say Received: ... via ESMTP instead of via SMTP when the client
|
||||
speaks ESMTP. (Hoping this can be a useful SpamAssassin rule).
|
||||
|
||||
|
@ -82,7 +82,7 @@ sub get_qmail_config {
|
||||
chomp @config;
|
||||
@config = grep { $_ and $_ !~ m/^\s*#/ and $_ =~ m/\S/} @config;
|
||||
close CF;
|
||||
$self->log(10, "returning get_config for $config ",Data::Dumper->Dump([\@config], [qw(config)]));
|
||||
#$self->log(10, "returning get_config for $config ",Data::Dumper->Dump([\@config], [qw(config)]));
|
||||
$self->{_config_cache}->{$config} = \@config;
|
||||
return wantarray ? @config : $config[0];
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ use Qpsmtpd::Constants;
|
||||
use Mail::Address ();
|
||||
use Mail::Header ();
|
||||
use IPC::Open2;
|
||||
use Data::Dumper;
|
||||
#use Data::Dumper;
|
||||
use POSIX qw(strftime);
|
||||
use Net::DNS;
|
||||
|
||||
|
@ -43,7 +43,7 @@ sub http_config {
|
||||
chomp @config;
|
||||
@config = grep { $_ and $_ !~ m/^\s*#/ and $_ =~ m/\S/ } @config;
|
||||
close CF;
|
||||
$self->log(0, "returning http_config for $config ",Data::Dumper->Dump([\@config], [qw(config)]));
|
||||
# $self->log(0, "returning http_config for $config ",Data::Dumper->Dump([\@config], [qw(config)]));
|
||||
return (OK, @config) if @config;
|
||||
}
|
||||
return DECLINED;
|
||||
|
Loading…
Reference in New Issue
Block a user