Message-ID: <40F6EB78.1010107@rowman.com>
From: John Peacock <jpeacock@rowman.com> Yeah, I was just noticing how odd it was that FROM was always logged but TO wasn't logged at all. git-svn-id: https://svn.perl.org/qpsmtpd/trunk@268 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
bd8cfde4c1
commit
de9a7fa02a
@ -282,6 +282,7 @@ sub rcpt {
|
|||||||
|
|
||||||
my ($rcpt) = ($_[0] =~ m/to:(.*)/i)[0];
|
my ($rcpt) = ($_[0] =~ m/to:(.*)/i)[0];
|
||||||
$rcpt = $_[1] unless $rcpt;
|
$rcpt = $_[1] unless $rcpt;
|
||||||
|
$self->log(LOGWARN, "$$ to email address : [$rcpt]");
|
||||||
$rcpt = (Qpsmtpd::Address->parse($rcpt))[0];
|
$rcpt = (Qpsmtpd::Address->parse($rcpt))[0];
|
||||||
|
|
||||||
return $self->respond(501, "could not parse recipient") unless $rcpt;
|
return $self->respond(501, "could not parse recipient") unless $rcpt;
|
||||||
|
Loading…
Reference in New Issue
Block a user