From: Vsevolod Stakhov Date: Tue, 23 Sep 2014 11:36:17 +0000 (+0100) Subject: Parse soft reject action. X-Git-Tag: 0.7.1~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=97ab132ebb143c123ed5f4f79054a4dc517bb6c3;p=rspamd.git Parse soft reject action. Issue: #99 Reported by: @jpastuszek --- 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; }