commit da346dc: [Minor] Add missing actions

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jan 26 17:14:05 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-26 17:03:15 +0000
URL: https://github.com/rspamd/rspamd/commit/da346dc41d500e0617a668fcb5158c1a9a3bd363

[Minor] Add missing actions

---
 src/libserver/cfg_utils.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 42e4bbc4a..0d3f1e75a 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -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";


More information about the Commits mailing list