From 833b11676e05d34d42e0fabb9a1651b81fa276ea Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 19 Apr 2018 15:01:59 +0100 Subject: [PATCH] [Minor] Support multiple recipients in CGP module --- utils/cgp_rspamd.pl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/cgp_rspamd.pl b/utils/cgp_rspamd.pl index 8ef2a7cf4..4a4bb9281 100644 --- a/utils/cgp_rspamd.pl +++ b/utils/cgp_rspamd.pl @@ -205,9 +205,7 @@ sub rspamd_scan { if ( scalar(@rcpts) > 0 ) { # XXX: Anyevent cannot parse headers with multiple values - foreach (@rcpts) { - $headers->{Rcpt} = $_; - } + $headers->{Rcpt} = join(',', @rcpts); } if ($ip) { $headers->{IP} = $ip; -- 2.39.5