]> source.dussan.org Git - rspamd.git/commitdiff
Parse soft reject action.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Sep 2014 11:36:17 +0000 (12:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 Sep 2014 11:36:17 +0000 (12:36 +0100)
Issue: #99
Reported by: @jpastuszek

src/libmime/filter.c

index 209e00e888fe259d78bc34f2a9e2c43622325301..6ae51f76975e33505c9fa4e0f381fa30d0ab778c 100644 (file)
@@ -1002,6 +1002,14 @@ rspamd_action_from_str (const gchar *data, gint *result)
                        sizeof ("rewrite subject") - 1) == 0) {
                *result = METRIC_ACTION_REWRITE_SUBJECT;
        }
+       else if (g_ascii_strncasecmp (data, "soft_reject",
+                       sizeof ("soft_reject") - 1) == 0) {
+               *result = METRIC_ACTION_SOFT_REJECT;
+       }
+       else if (g_ascii_strncasecmp (data, "soft reject",
+                       sizeof ("soft reject") - 1) == 0) {
+               *result = METRIC_ACTION_SOFT_REJECT;
+       }
        else {
                return FALSE;
        }