From 97ab132ebb143c123ed5f4f79054a4dc517bb6c3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 23 Sep 2014 12:36:17 +0100 Subject: [PATCH] Parse soft reject action. Issue: #99 Reported by: @jpastuszek --- src/libmime/filter.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 209e00e88..6ae51f769 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -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; } -- 2.39.5