diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-26 17:50:13 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-26 17:50:13 +0400 |
commit | 971bad45c44cf430bde13faede56699ba0381e83 (patch) | |
tree | d82e66c29b32430ea39729bc3fa8e478ddd14e50 /rspamc.pl.in | |
parent | 5b9251914c25fa6559e5680f03d7efddad9af736 (diff) | |
download | rspamd-971bad45c44cf430bde13faede56699ba0381e83.tar.gz rspamd-971bad45c44cf430bde13faede56699ba0381e83.zip |
* Add ability to pass all filters by using flag -p in case of rspamc or adding header Pass: all in rspamc protocol
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in index 1cf6dd45a..ae8470a2e 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -44,6 +44,7 @@ Additional options: -w define weight for fuzzy operations -S define search string for IMAP operations -i emulate that message was send from specified IP +-p pass message throught all filters Notes: imap format: imap:user:<username>:password:[<password>]:host:<hostname>:mbox:<mboxname> @@ -191,7 +192,7 @@ my %args; HELP_MESSAGE() unless scalar @ARGV >= 1; -getopt('c:h:P:s:d:w:S:H:i:', \%args); +getopt('pc:h:P:s:d:w:S:H:i:', \%args); my $cmd = shift; my @path = shift; @@ -254,6 +255,9 @@ if (defined ($args{w})) { if (defined ($args{i})) { $cfg{'ip'} = $args{i}; } +if (exists ($args{p})) { + $cfg{'pass_all'} = 1; +} if ($cmd =~ /SYMBOLS|SCAN|PROCESS|CHECK|REPORT_IFSPAM|REPORT|URLS|EMAILS|LEARN|FUZZY_ADD|FUZZY_DEL|WEIGHTS/i) { $cfg{'require_input'} = 1; |