diff options
author | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-03-15 21:17:31 +0300 |
---|---|---|
committer | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-03-15 21:17:31 +0300 |
commit | ff726239c58b83fb0823423e853afcae1785506b (patch) | |
tree | 1d268dc151f08b46824b9f24ffa2a75ce3a6c801 /perl | |
parent | 32b812257da7a72c08a1cc4ebb91b2fec129902a (diff) | |
download | rspamd-ff726239c58b83fb0823423e853afcae1785506b.tar.gz rspamd-ff726239c58b83fb0823423e853afcae1785506b.zip |
* Fix learn command (-m is used instead -w)
Diffstat (limited to 'perl')
-rw-r--r-- | perl/lib/Mail/Rspamd/Client.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl/lib/Mail/Rspamd/Client.pm b/perl/lib/Mail/Rspamd/Client.pm index ee07e446b..94e26a093 100644 --- a/perl/lib/Mail/Rspamd/Client.pm +++ b/perl/lib/Mail/Rspamd/Client.pm @@ -965,7 +965,7 @@ sub _do_control_command { if ($self->_auth ($remote)) { my $len = length ($msg); - syswrite $remote, "learn $self->{statfile} $len -w $self->{weight}" . $EOL; + syswrite $remote, "learn $self->{statfile} $len -m $self->{weight}" . $EOL; syswrite $remote, $msg . $EOL; unless ($self->_get_io_readiness($remote, 0)) { $res{error} = "Timeout while reading data from socket"; |