From e86a0195912a88f6ac2e13158c16fc5802b95f5d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 2 Sep 2014 13:20:57 +0100 Subject: [PATCH] Support new and old names for actions. --- src/libmime/filter.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.5