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:
parent
2e552d2297
commit
da0110837b
@ -160,7 +160,7 @@ sub hook_data_post {
|
||||
# } elsif ($self->{_bcc_virusadmin}) {
|
||||
if ($self->{_bcc_virusadmin}) {
|
||||
foreach ( @{ Mail::Address->parse($self->{_bcc_virusadmin}) } ) {
|
||||
$transaction->add_recipient($_->address);
|
||||
$transaction->add_recipient($_);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user