Ver código fonte

Support new and old names for actions.

tags/0.7.0
Vsevolod Stakhov 9 anos atrás
pai
commit
e86a019591
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8
    0
      src/libmime/filter.c

+ 8
- 0
src/libmime/filter.c Ver arquivo

@@ -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;
}

Carregando…
Cancelar
Salvar