From: Vsevolod Stakhov Date: Tue, 2 Sep 2014 12:20:57 +0000 (+0100) Subject: Support new and old names for actions. X-Git-Tag: 0.7.0~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e86a0195912a88f6ac2e13158c16fc5802b95f5d;p=rspamd.git Support new and old names for actions. --- diff --git a/src/libmime/filter.c b/src/libmime/filter.c index 3f3b26f6a..5687a2115 100644 --- a/src/libmime/filter.c +++ b/src/libmime/filter.c @@ -972,6 +972,14 @@ check_action_str (const gchar *data, gint *result) sizeof ("rewrite_subject") - 1) == 0) { *result = METRIC_ACTION_REWRITE_SUBJECT; } + else if (g_ascii_strncasecmp (data, "add header", sizeof ("add header") - + 1) == 0) { + *result = METRIC_ACTION_ADD_HEADER; + } + else if (g_ascii_strncasecmp (data, "rewrite subject", + sizeof ("rewrite subject") - 1) == 0) { + *result = METRIC_ACTION_REWRITE_SUBJECT; + } else { return FALSE; }