diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-19 15:01:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-19 15:01:59 +0100 |
commit | 833b11676e05d34d42e0fabb9a1651b81fa276ea (patch) | |
tree | edc3af5fa908b4d5dc9a8516532c9ba2a38285ef /utils/cgp_rspamd.pl | |
parent | 7d2447448cbcf025f5152a7091e648b00416a92a (diff) | |
download | rspamd-833b11676e05d34d42e0fabb9a1651b81fa276ea.tar.gz rspamd-833b11676e05d34d42e0fabb9a1651b81fa276ea.zip |
[Minor] Support multiple recipients in CGP module
Diffstat (limited to 'utils/cgp_rspamd.pl')
-rw-r--r-- | utils/cgp_rspamd.pl | 4 |
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; |