Provide original_string in PollServer
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@892 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
e6df2f5072
commit
b0cc017e9e
@ -108,7 +108,8 @@ sub process_line {
|
|||||||
my $line = shift || return;
|
my $line = shift || return;
|
||||||
if ($::DEBUG > 1) { print "$$:".($self+0)."C($self->{mode}): $line"; }
|
if ($::DEBUG > 1) { print "$$:".($self+0)."C($self->{mode}): $line"; }
|
||||||
if ($self->{mode} eq 'cmd') {
|
if ($self->{mode} eq 'cmd') {
|
||||||
$line =~ s/\r?\n//;
|
$line =~ s/\r?\n$//s;
|
||||||
|
$self->connection->notes('original_string', $line);
|
||||||
my ($cmd, @params) = split(/ +/, $line, 2);
|
my ($cmd, @params) = split(/ +/, $line, 2);
|
||||||
my $meth = lc($cmd);
|
my $meth = lc($cmd);
|
||||||
if (my $lookup = $cmd_cache{$meth} || $self->{_commands}->{$meth} && $self->can($meth)) {
|
if (my $lookup = $cmd_cache{$meth} || $self->{_commands}->{$meth} && $self->can($meth)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user