From: Vsevolod Stakhov Date: Tue, 25 Aug 2015 14:48:51 +0000 (+0100) Subject: Process 'no action' action. X-Git-Tag: 1.0.0~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6dcca2291fab99aaa8ba711e801dacc1e9c5dd5;p=thirdparty%2Frspamd.git Process 'no action' action. --- 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; }