diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 12:36:17 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-23 12:36:17 +0100 |
commit | 97ab132ebb143c123ed5f4f79054a4dc517bb6c3 (patch) | |
tree | 044e3d74e5bcf9c2ccd85522e422d08c14997879 /src | |
parent | 1d56ea0c8e6564c622b5c353514131be5ea24b30 (diff) | |
download | rspamd-97ab132ebb143c123ed5f4f79054a4dc517bb6c3.tar.gz rspamd-97ab132ebb143c123ed5f4f79054a4dc517bb6c3.zip |
Parse soft reject action.
Issue: #99
Reported by: @jpastuszek
Diffstat (limited to 'src')
-rw-r--r-- | src/libmime/filter.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |