From f42f2e524ff25001686e7c4c2dc7c40563dff3b8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 27 Feb 2017 13:54:44 +0000 Subject: [PATCH] [Minor] Use DISCARD instead of ERROR in CGP interface --- utils/cgp_rspamd.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/cgp_rspamd.pl b/utils/cgp_rspamd.pl index 6417646bf..c7c4cef85 100644 --- a/utils/cgp_rspamd.pl +++ b/utils/cgp_rspamd.pl @@ -86,7 +86,7 @@ sub rspamd_scan { $file, $id, $def->{'score'}, $def->{'required_score'}, $symbols; if ( $action eq 'reject' ) { - print "$tag ERROR " . cgp_string($reject_message) . "\n"; + print "$tag DISCARD\n"; } elsif ( $action eq 'add header' || $action eq 'rewrite subject' ) { print "$tag ADDHEADER " . cgp_string($header) . " OK\n"; -- 2.39.5