From f6dcca2291fab99aaa8ba711e801dacc1e9c5dd5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 25 Aug 2015 15:48:51 +0100 Subject: [PATCH] Process 'no action' action. --- src/libmime/filter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 8859cd0382..4d8e15e482 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -330,6 +330,14 @@ rspamd_action_from_str (const gchar *data, gint *result) sizeof ("soft reject") - 1) == 0) { *result = METRIC_ACTION_SOFT_REJECT; } + else if (g_ascii_strncasecmp (data, "no_action", + sizeof ("soft_reject") - 1) == 0) { + *result = METRIC_ACTION_NOACTION; + } + else if (g_ascii_strncasecmp (data, "no action", + sizeof ("soft reject") - 1) == 0) { + *result = METRIC_ACTION_NOACTION; + } else { return FALSE; } -- 2.47.3