]> source.dussan.org Git - rspamd.git/commitdiff
Support new and old names for actions.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Sep 2014 12:20:57 +0000 (13:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Sep 2014 12:20:57 +0000 (13:20 +0100)
src/libmime/filter.c

index 3f3b26f6a6af930a4c24f597190f546ef5d49433..5687a2115f411fedb5fb32cb323bbdff5942e856 100644 (file)
@@ -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;
        }