aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r--src/client/rspamc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index ebf0daed7..ee3d30042 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -509,7 +509,12 @@ rspamc_client_cb (struct rspamd_client_connection *conn,
struct rspamc_command *cmd;
cmd = cbdata->cmd;
- rspamd_fprintf (stdout, "Results for file: %s\n", cbdata->filename);
+ if (cmd->need_input) {
+ rspamd_fprintf (stdout, "Results for file: %s\n", cbdata->filename);
+ }
+ else {
+ rspamd_fprintf (stdout, "Results for command: %s\n", cmd->name);
+ }
if (result != NULL) {
if (headers && msg != NULL) {
rspamc_output_headers (msg);