diff options
author | Anton Yuzhaninov <citrin+git@citrin.ru> | 2019-06-20 20:16:37 +0200 |
---|---|---|
committer | Anton Yuzhaninov <citrin+git@citrin.ru> | 2019-06-20 20:21:50 +0200 |
commit | 93fbacc6fe590be3c5212a34fcda9b3a1c0ffcce (patch) | |
tree | 73842990c7f3c8123f6e18d1c09da5246638dd21 /utils/classifier_test.pl | |
parent | 353bef24678bf508c98aa2d86d3e662fda673a9a (diff) | |
download | rspamd-93fbacc6fe590be3c5212a34fcda9b3a1c0ffcce.tar.gz rspamd-93fbacc6fe590be3c5212a34fcda9b3a1c0ffcce.zip |
[Minor] Format perl scripts using current perltidy version
Diffstat (limited to 'utils/classifier_test.pl')
-rw-r--r-- | utils/classifier_test.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/classifier_test.pl b/utils/classifier_test.pl index 994ad8ce8..238417f99 100644 --- a/utils/classifier_test.pl +++ b/utils/classifier_test.pl @@ -73,7 +73,7 @@ sub learn_rspamc { my ( $files, $spam ) = @_; my $processed = 0; - my $cmd = $spam ? "learn_spam" : "learn_ham"; + my $cmd = $spam ? "learn_spam" : "learn_ham"; my $args_quoted = shell_quote @{$files}; open( my $p, "$rspamc -t $timeout -c $classifier --compact -j -n $parallel $cmd $args_quoted |" ) or die "cannot spawn $rspamc: $!"; @@ -94,7 +94,7 @@ sub learn_bogofilter { foreach my $f ( @{$files} ) { my $args_quoted = shell_quote $f; - my $fl = $spam ? "-s" : "-n"; + my $fl = $spam ? "-s" : "-n"; `$bogofilter -I $args_quoted $fl`; if ( $? == 0 ) { $processed++; @@ -110,7 +110,7 @@ sub learn_dspam { foreach my $f ( @{$files} ) { my $args_quoted = shell_quote $f; - my $fl = $spam ? "--class=spam" : "--class=innocent"; + my $fl = $spam ? "--class=spam" : "--class=innocent"; open( my $p, "|$dspam --user nobody --source=corpus --stdout --mode=toe $fl" ) or die "cannot run $dspam: $!"; |