]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Process 'no action' action.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 25 Aug 2015 14:48:51 +0000 (15:48 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 25 Aug 2015 14:48:51 +0000 (15:48 +0100)
src/libmime/filter.c

index 8859cd038297c0d66a407fc3d316db5b4866186b..4d8e15e482f6ca7256d844de6a8d81d4caaabe80 100644 (file)
@@ -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;
        }