projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22480dc
)
add spam session stats to command line output
author
Paul
<paul@claws-mail.org>
Mon, 13 Feb 2023 09:28:12 +0000
(09:28 +0000)
committer
Paul
<paul@claws-mail.org>
Mon, 13 Feb 2023 09:28:12 +0000
(09:28 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index bf1a9ac57cdf008d03c531d7edaad971ed811619..911fd0dfcc4653912cf1bcbdeaaab83f5759d6e1 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-2768,6
+2768,12
@@
static void lock_socket_input_cb(gpointer data,
session_stats.received);
CM_FD_WRITE_ALL(tmp);
+ if (session_stats.spam > 0) {
+ g_snprintf(tmp, sizeof(tmp), _("Spam messages: %d\n"),
+ session_stats.spam);
+ CM_FD_WRITE_ALL(tmp);
+ }
+
CM_FD_WRITE_ALL("\n");
g_snprintf(tmp, sizeof(tmp), _("Outgoing traffic\n"));