aboutsummaryrefslogtreecommitdiffstats
path: root/rspamc.pl.in
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 19:20:45 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-15 19:20:45 +0400
commit205cb6049d86f74707949ac6a3b2de64afe2850a (patch)
tree0c40e3ee9b10f2fab59f873d005dc4f966ec4d04 /rspamc.pl.in
parentecbbd935773673d8df1f2cb8334b447f7b834b5a (diff)
downloadrspamd-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-xrspamc.pl.in17
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";
}