aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-22 14:10:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-22 14:10:36 +0000
commit9656df37e15b22894143a76d8d96f61ac4d974d5 (patch)
treefc6c022e46b34293d401206c8509aba3ad81a234 /src/rspamadm
parented6b1e861c1deb28cafbb46bed1e764be3a8d9d3 (diff)
downloadrspamd-9656df37e15b22894143a76d8d96f61ac4d974d5.tar.gz
rspamd-9656df37e15b22894143a76d8d96f61ac4d974d5.zip
Add command to sync fuzzy storage
It should be as simple as `rspamadm control fuzzy_sync` Issue: #533 Reported by: @moisseev
Diffstat (limited to 'src/rspamadm')
-rw-r--r--src/rspamadm/control.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c
index e69a7fe00..de6e48346 100644
--- a/src/rspamadm/control.c
+++ b/src/rspamadm/control.c
@@ -201,6 +201,10 @@ rspamadm_control (gint argc, gchar **argv)
g_ascii_strcasecmp (cmd, "fuzzy_stat") == 0) {
path = "/fuzzystat";
}
+ else if (g_ascii_strcasecmp (cmd, "fuzzysync") == 0 ||
+ g_ascii_strcasecmp (cmd, "fuzzy_sync") == 0) {
+ path = "/fuzzysync";
+ }
else {
rspamd_fprintf (stderr, "unknown command: %s\n", cmd);
exit (1);