diff options
author | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-03-15 20:54:39 +0300 |
---|---|---|
committer | cebka@lenovo-laptop <cebka@lenovo-laptop> | 2010-03-15 20:54:39 +0300 |
commit | 21dc91eac153c2dade3c393d0e6f6c4e66d51a94 (patch) | |
tree | af35c7d36f5546a7c1ec835c6e4f99aa9a460ea4 /rspamc.pl.in | |
parent | 9cb57d681480ca0a2b7b709ba2253b04cb5a6f72 (diff) | |
download | rspamd-21dc91eac153c2dade3c393d0e6f6c4e66d51a94.tar.gz rspamd-21dc91eac153c2dade3c393d0e6f6c4e66d51a94.zip |
* Fix another spf core dump while parsing 'include' items
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in index ba00d5a5c..efadde0a2 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -23,6 +23,7 @@ my %cfg = ( 'deliver_to'=> '', 'weight' => 1, 'imap_search' => 'ALL', + 'ip' => '127.0.0.1', ); my $terminal; @@ -42,6 +43,7 @@ Additional options: -d define deliver-to header -w define weight for fuzzy operations -S define search string for IMAP operations +-i emulate that message was send from specified IP Notes: imap format: imap:user:<username>:password:[<password>]:host:<hostname>:mbox:<mboxname> @@ -184,7 +186,7 @@ my %args; HELP_MESSAGE() unless scalar @ARGV >= 1; -getopt('c:h:P:s:d:w:S:H:', \%args); +getopt('c:h:P:s:d:w:S:H:i:', \%args); my $cmd = shift; my @path = shift; @@ -229,6 +231,9 @@ if (defined ($args{d})) { if (defined ($args{w})) { $cfg{'weight'} = $args{w}; } +if (defined ($args{i})) { + $cfg{'ip'} = $args{i}; +} if ($cmd =~ /(SYMBOLS|PROCESS|CHECK|URLS|EMAILS)/i) { $cfg{'command'} = $1; |