From ce0d2b80efcb5140f9bf27585892f75a99dd42ad Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 27 Mar 2013 20:09:42 -0400 Subject: [PATCH] dkim: corrected log entry, added comment --- plugins/dkim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/dkim b/plugins/dkim index 4155df6..0633141 100644 --- a/plugins/dkim +++ b/plugins/dkim @@ -80,9 +80,7 @@ use Socket qw(:DEFAULT :crlf); sub init { my ($self, $qp) = (shift, shift); - $self->{_args} = { @_ }; - $self->{_args}{reject} = 1 if ! defined $self->{_args}{reject}; $self->{_args}{reject_type} ||= 'perm'; } @@ -196,7 +194,7 @@ sub handle_sig_invalid { elsif ( $prs->{reject} ) { return $self->get_reject( "invalid DKIM signature: " . $dkim->result_detail, - "fail, invalid signature, reject policy" + "invalid signature, reject policy" ); } @@ -332,6 +330,7 @@ sub add_header { my $self = shift; my $header = shift or return; +# consider adding Authentication-Results header here as well $self->qp->transaction->header->add( 'X-DKIM-Authentication', $header, 0 ); }