diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-15 19:20:45 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-15 19:20:45 +0400 |
commit | 205cb6049d86f74707949ac6a3b2de64afe2850a (patch) | |
tree | 0c40e3ee9b10f2fab59f873d005dc4f966ec4d04 /rspamc.pl.in | |
parent | ecbbd935773673d8df1f2cb8334b447f7b834b5a (diff) | |
download | rspamd-205cb6049d86f74707949ac6a3b2de64afe2850a.tar.gz rspamd-205cb6049d86f74707949ac6a3b2de64afe2850a.zip |
* Add ability to assign several actions to one metric
* Report action in rspamc protocol
* Mail::Rspamd::Client and rspamc can now understand Action header too
* Write action to log as well
Diffstat (limited to 'rspamc.pl.in')
-rwxr-xr-x | rspamc.pl.in | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/rspamc.pl.in b/rspamc.pl.in index a71e061f1..b2f6162d8 100755 --- a/rspamc.pl.in +++ b/rspamc.pl.in @@ -178,9 +178,22 @@ sub print_rspamc_result { print "Symbols: "; $terminal->Tputs( 'me', 1, *STDOUT ); print join("; ", @{ $result->{symbols} }) . "\n"; - print "Urls: " . join(", ", @{ $result->{urls} }) . "\n"; + + $terminal->Tputs( 'md', 1, *STDOUT ); + print "Action: "; + $terminal->Tputs( 'me', 1, *STDOUT ); + print "$result->{action}\n"; + + $terminal->Tputs( 'md', 1, *STDOUT ); + print "Urls: "; + $terminal->Tputs( 'me', 1, *STDOUT ); + print join(", ", @{ $result->{urls} }) . "\n"; + foreach my $msg (@{ $result->{messages} }) { - print "Message: $msg\n"; + $terminal->Tputs( 'md', 1, *STDOUT ); + print "Message: "; + $terminal->Tputs( 'me', 1, *STDOUT ); + print "$msg\n"; } print "\n\n"; } |