diff --git a/plugins/dont_require_anglebrackets b/plugins/dont_require_anglebrackets index 7bb1eea..000030a 100644 --- a/plugins/dont_require_anglebrackets +++ b/plugins/dont_require_anglebrackets @@ -24,7 +24,8 @@ MAIL FROM:user@example.com sub hook_mail_pre { my ($self,$transaction, $addr) = @_; unless ($addr =~ /^<.*>$/) { - $addr = "<".$addr.">"; + $self->log(LOGINFO, "added MAIL angle brackets"); + $addr = '<'.$addr.'>'; } return (OK, $addr); } @@ -32,7 +33,8 @@ sub hook_mail_pre { sub hook_rcpt_pre { my ($self,$transaction, $addr) = @_; unless ($addr =~ /^<.*>$/) { - $addr = "<".$addr.">"; + $self->log(LOGINFO, "added RCPT angle brackets"); + $addr = '<'.$addr.'>'; } return (OK, $addr); }