From b0cc017e9ec3d1922630319073c3c65cfd63712a Mon Sep 17 00:00:00 2001 From: Matt Sergeant Date: Fri, 9 May 2008 15:27:11 +0000 Subject: [PATCH] Provide original_string in PollServer git-svn-id: https://svn.perl.org/qpsmtpd/trunk@892 958fd67b-6ff1-0310-b445-bb7760255be9 --- lib/Qpsmtpd/PollServer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Qpsmtpd/PollServer.pm b/lib/Qpsmtpd/PollServer.pm index a67bc01..3992ccf 100644 --- a/lib/Qpsmtpd/PollServer.pm +++ b/lib/Qpsmtpd/PollServer.pm @@ -108,7 +108,8 @@ sub process_line { my $line = shift || return; if ($::DEBUG > 1) { print "$$:".($self+0)."C($self->{mode}): $line"; } 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 $meth = lc($cmd); if (my $lookup = $cmd_cache{$meth} || $self->{_commands}->{$meth} && $self->can($meth)) {