summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--utils/cgp_rspamd.pl4
1 files changed, 1 insertions, 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;