]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add missing actions
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Jan 2019 17:03:15 +0000 (17:03 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Jan 2019 17:03:15 +0000 (17:03 +0000)
src/libserver/cfg_utils.c

index 42e4bbc4ad20633e26f6d1b38fd85e7d96176818..0d3f1e75a3875fc8a3bd2214f21084a1f84167a8 100644 (file)
@@ -2266,6 +2266,10 @@ rspamd_action_to_str (enum rspamd_action_type action)
                return "invalid max action";
        case METRIC_ACTION_CUSTOM:
                return "custom";
+       case METRIC_ACTION_MILTER_DISCARD:
+               return "discard";
+       case METRIC_ACTION_MILTER_QUARANTINE:
+               return "quarantine";
        }
 
        return "unknown action";
@@ -2291,6 +2295,10 @@ rspamd_action_to_str_alt (enum rspamd_action_type action)
                return "invalid max action";
        case METRIC_ACTION_CUSTOM:
                return "custom";
+       case METRIC_ACTION_MILTER_DISCARD:
+               return "discard";
+       case METRIC_ACTION_MILTER_QUARANTINE:
+               return "quarantine";
        }
 
        return "unknown action";