diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-02 13:20:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-02 13:20:57 +0100 |
commit | e86a0195912a88f6ac2e13158c16fc5802b95f5d (patch) | |
tree | 971574271ced22360009106389b63cc6906b8262 /src/libmime | |
parent | 30c866a64f8230cfeb54c23bb1219710a4258ec7 (diff) | |
download | rspamd-e86a0195912a88f6ac2e13158c16fc5802b95f5d.tar.gz rspamd-e86a0195912a88f6ac2e13158c16fc5802b95f5d.zip |
Support new and old names for actions.
Diffstat (limited to 'src/libmime')
-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 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; } |