Call add_recipient correctly in kavscanner plugin

plugins/virus/kavscanner calls $transaction->add_recipient($_->address)
on a list of Mail::Address objects, but add_recipient() clearly
documents that it takes Qpsmtpd::Address (or compatible) objects, not
strings.  This is a bit of a drive-by fix inspired by a grep through the
codebase for calls to add_recipient().
This commit is contained in:
jaredj 2009-02-25 07:48:34 -06:00 committed by Ask Bjørn Hansen
parent 2e552d2297
commit da0110837b

View File

@ -160,7 +160,7 @@ sub hook_data_post {
# } elsif ($self->{_bcc_virusadmin}) { # } elsif ($self->{_bcc_virusadmin}) {
if ($self->{_bcc_virusadmin}) { if ($self->{_bcc_virusadmin}) {
foreach ( @{ Mail::Address->parse($self->{_bcc_virusadmin}) } ) { foreach ( @{ Mail::Address->parse($self->{_bcc_virusadmin}) } ) {
$transaction->add_recipient($_->address); $transaction->add_recipient($_);
} }
} }
} else { } else {