summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-19 15:01:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-04-19 15:01:59 +0100
commit833b11676e05d34d42e0fabb9a1651b81fa276ea (patch)
treeedc3af5fa908b4d5dc9a8516532c9ba2a38285ef
parent7d2447448cbcf025f5152a7091e648b00416a92a (diff)
downloadrspamd-833b11676e05d34d42e0fabb9a1651b81fa276ea.tar.gz
rspamd-833b11676e05d34d42e0fabb9a1651b81fa276ea.zip
[Minor] Support multiple recipients in CGP module
-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;