diff --git a/Changes b/Changes index ab549d5..d7ab406 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,6 @@ + Change transaction->add_recipient to skip adding "null" rcpt if passed + Add logging/apache plugin for logging to the apache error log Add connection_time plugin diff --git a/lib/Qpsmtpd/Transaction.pm b/lib/Qpsmtpd/Transaction.pm index 840e0e4..5c90bc3 100644 --- a/lib/Qpsmtpd/Transaction.pm +++ b/lib/Qpsmtpd/Transaction.pm @@ -23,8 +23,8 @@ sub start { } sub add_recipient { - my $self = shift; - @_ and push @{$self->{_recipients}}, shift; + my ($self, $rcpt) = @_; + push @{$self->{_recipients}}, $rcpt if $rcpt; } sub remove_recipient {