aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-09 17:04:53 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-09 17:04:53 +0100
commitd1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd (patch)
treefd26ef8a2f55b9dc8cc9045230301a6b6d6b57f8 /src/client/rspamc.c
parent689afbb9986cac439d76f4cae5f232e6dc78ee28 (diff)
downloadrspamd-d1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd.tar.gz
rspamd-d1ad620d8e8a1bc90dfdf6505a95c155dd31a0cd.zip
[Feature] Do not print garbadge in --compact output
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r--src/client/rspamc.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 9c00a4bc8..8f7f463bb 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -1238,12 +1238,16 @@ rspamc_client_cb (struct rspamd_client_connection *conn,
}
else {
if (cmd->need_input) {
- rspamd_fprintf (out, "Results for file: %s (%.3f seconds)\n",
- cbdata->filename, diff);
+ if (!compact) {
+ rspamd_fprintf (out, "Results for file: %s (%.3f seconds)\n",
+ cbdata->filename, diff);
+ }
}
else {
- rspamd_fprintf (out, "Results for command: %s (%.3f seconds)\n",
- cmd->name, diff);
+ if (!compact) {
+ rspamd_fprintf (out, "Results for command: %s (%.3f seconds)\n",
+ cmd->name, diff);
+ }
}
if (result != NULL) {