commit 7cca8ad: [Fix] test external_relay: count should always be the last rule, as it have no matching condition

Soha Jin soha at lohu.info
Tue Jul 11 18:56:03 UTC 2023


Author: Soha Jin
Date: 2023-07-11 20:27:53 +0800
URL: https://github.com/rspamd/rspamd/commit/7cca8ad4b07c3994294621fc87c138827c934e4f

[Fix] test external_relay: count should always be the last rule, as it have no matching condition

---
 test/functional/configs/merged-local.conf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/test/functional/configs/merged-local.conf b/test/functional/configs/merged-local.conf
index 1be38d128..2cf05bf13 100644
--- a/test/functional/configs/merged-local.conf
+++ b/test/functional/configs/merged-local.conf
@@ -41,6 +41,9 @@ external_relay {
     }
     EXTERNAL_RELAY_COUNT {
       count = 4;
+      # `count` strategy always pops Received headers out, this will break other rules.
+      # So it should always be the last rule.
+      priority = 30;
       strategy = "count";
     }
     EXTERNAL_RELAY_HOSTNAME_MAP {


More information about the Commits mailing list