]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Support multiple recipients in CGP module
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Apr 2018 14:01:59 +0000 (15:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Apr 2018 14:01:59 +0000 (15:01 +0100)
utils/cgp_rspamd.pl

index 8ef2a7cf420d0a519c6981092c2ee3fa0445e65a..4a4bb928161651384dad58ebfe51fe58e8815219 100644 (file)
@@ -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;