aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-09 15:28:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-09 15:38:20 +0000
commit430fafa6ebd713ee20d94119951412fba182cb21 (patch)
treea7aaf55312da9ff765816e6bc646cc00bff50614 /src/client/rspamc.c
parentf624973b669863f58a61f15eaaf5d968434f65c2 (diff)
downloadrspamd-430fafa6ebd713ee20d94119951412fba182cb21.tar.gz
rspamd-430fafa6ebd713ee20d94119951412fba182cb21.zip
[Minor] Add flags to skip images and attachments when learning fuzzy
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r--src/client/rspamc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index b756d6722..14e8d8534 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -60,6 +60,8 @@ static gboolean mime_output = FALSE;
static gboolean empty_input = FALSE;
static gboolean compressed = FALSE;
static gboolean profile = FALSE;
+static gboolean skip_images = FALSE;
+static gboolean skip_attachments = FALSE;
static gchar *key = NULL;
static GList *children;
@@ -145,6 +147,10 @@ static GOptionEntry entries[] =
"Profile symbols execution time", NULL },
{ "dictionary", 'D', 0, G_OPTION_ARG_FILENAME, &dictionary,
"Use dictionary to compress data", NULL },
+ { "skip-images", '\0', 0, G_OPTION_ARG_NONE, &skip_images,
+ "Skip images when learning/unlearning fuzzy", NULL },
+ { "skip-attachments", '\0', 0, G_OPTION_ARG_NONE, &skip_attachments,
+ "Skip attachments when learning/unlearning fuzzy", NULL },
{ NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL }
};
@@ -552,6 +558,12 @@ add_options (GQueue *opts)
if (profile) {
ADD_CLIENT_HEADER (opts, "Profile", "true");
}
+ if (skip_images) {
+ ADD_CLIENT_HEADER (opts, "Skip-Images", "true");
+ }
+ if (skip_attachments) {
+ ADD_CLIENT_HEADER (opts, "Skip-Attachments", "true");
+ }
hdr = http_headers;