diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-15 19:42:28 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-06-15 19:42:28 +0400 |
commit | c76bd2e9ab2506ef06cc291c3e4b6b57ae08ea65 (patch) | |
tree | deb00c3ceb9659a1d8b80845a7218b93cea4cbab /rspamc.pl.in | |
parent | c9d11a65b5c801a27f154091aebe86cbd08fd319 (diff) | |
download | rspamd-c76bd2e9ab2506ef06cc291c3e4b6b57ae08ea65.tar.gz rspamd-c76bd2e9ab2506ef06cc291c3e4b6b57ae08ea65.zip |
* Add module for blacklisting emails (self documented in sample config)
* Add command 'emails' for extracting emails from a message
* Rework protocol layout to allow expanding rspamd protocol by custom commands that can be added from anywhere in code
* Allow rspamc to work without strictly parameter 'command'. Command by default is 'symbols'.
* Update version to 0.1.8
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in index d9e5def14..a1f667511 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -203,8 +203,7 @@ my $cmd = shift; my $do_parse_config = 1; if (!defined ($cmd) || $cmd eq '') { - HELP_MESSAGE(); - exit; + $cmd = 'SYMBOLS'; } if (defined ($args{c})) { @@ -237,7 +236,7 @@ if (defined ($args{p})) { $cfg{'port'} = $args{p}; } -if ($cmd =~ /(SYMBOLS|SCAN|PROCESS|CHECK|REPORT_IFSPAM|REPORT|URLS)/i) { +if ($cmd =~ /(SYMBOLS|SCAN|PROCESS|CHECK|REPORT_IFSPAM|REPORT|URLS|EMAILS)/i) { $cfg{'command'} = $1; $cfg{'control'} = 0; } |