aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rspamc.pod
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-07 18:53:55 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-07 18:53:55 +0300
commit4712b0316d24bcf2824b4ef3004d750315c56626 (patch)
treeabc1b6ec57c32cc7ebcb64786c3b31753e6e9062 /doc/rspamc.pod
parentda99f5b139d699ec89a4b36bfa4d592c41b56342 (diff)
downloadrspamd-4712b0316d24bcf2824b4ef3004d750315c56626.tar.gz
rspamd-4712b0316d24bcf2824b4ef3004d750315c56626.zip
* Add manual pages for rspamd and rspamc.
Fix bug with extracting urls from tags without quotes.
Diffstat (limited to 'doc/rspamc.pod')
-rw-r--r--doc/rspamc.pod96
1 files changed, 96 insertions, 0 deletions
diff --git a/doc/rspamc.pod b/doc/rspamc.pod
new file mode 100644
index 000000000..14de89b92
--- /dev/null
+++ b/doc/rspamc.pod
@@ -0,0 +1,96 @@
+=head1 RSPAMC
+
+rspamc - a simple client for rspamd spam filtering system
+
+=head1 SYNOPSIS
+
+rspamc [B<-h> I<host[:port]>] [B<-p>]
+[B<-i> I<ip>] [B<-s> I<statfile>] [B<-w> I<weight>]
+[B<-P> I<password>] [B<-f> I<flag>] [command] [file [file ...]]
+
+rspamc [B<--help>]
+
+=head1 DESCRIPTION
+
+B<Rspamc> is a simple client for checking messages using rspamd or for learning rspamd by messages.
+B<Rspamc> has several mandatory options for learning: I<password> and I<statfile>.
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<-h> I<host[:port]>, B<--connect> I<host[:port]>
+
+Specify host and port for connecting to rspamd server. Default host is I<localhost> and
+default port is I<11333> for checking messages and I<11334> for learning and statistic.
+
+=item B<-p>, B<--pass-all>
+
+Pass all filters when checking messages. Ignored in case of learning.
+
+=item B<-P> I<password>, B<--password> I<password>
+
+Specify controller's password. Mandatory option for learning.
+
+=item B<-s> I<statfile>, B<--statfile> I<statfile>
+
+Specify statfile's symbol to learn message. Mandatory option for learning.
+
+=item B<-i> I<ip>, B<--ip> I<ip>
+
+Add IP header when scanning message. Useful for checking messages and emulating that client comes from
+specific IP address.
+
+=item B<-w> I<weight>, B<--weight> I<weight>
+
+Weight of message for fuzzy operations.
+
+=item B<-f> I<flag>, B<--flag> I<flag>
+
+Weight of message for fuzzy operations.
+
+
+=back
+
+=head1 RETURN VALUE
+
+On exit B<rspamc> returns 0 if operation was successfull and error code otherwise.
+
+=head1 EXAMPLES
+
+Check stdin:
+
+ rspamc < some_file
+
+Check files:
+
+ rspamc symbols file1 file2 file3
+
+Learn files:
+
+ rspamc -P pass -s BAYES_SPAM file1 file2 file3
+
+Add fuzzy hash to set 2:
+
+ rspamc -P pass -f 2 -w 10 fuzzy_add file1 file2
+
+Delete fuzzy hash from other server:
+
+ rspamc -P pass -h hostname:11334 -f 2 fuzzy_del file1 file2
+
+Get statistics:
+
+ rspamc stat
+
+=head1 AUTHOR
+
+Vsevolod Stakhov <vsevolod@highsecure.ru>
+
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2011 by Vsevolod Stakhov <vsevolod@highsecure.ru>.
+
+This program is free software; you may redistribute it and/or modify it
+under the terms of BSD license.
+
+=cut \ No newline at end of file