aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-08-02 17:13:33 +0600
committerGitHub <noreply@github.com>2024-08-02 17:13:33 +0600
commite4e38e844ea532b3b039fab4dbaf2da829c4f127 (patch)
tree0c9fc34c2a56a9790f8984c19f7447ca5529a9dd /test/functional/configs
parente389127a2563a881c46861c968c821a5d3275126 (diff)
parentb23a707b11b5d1aaf12ad61add83699a5324e73e (diff)
downloadrspamd-e4e38e844ea532b3b039fab4dbaf2da829c4f127.tar.gz
rspamd-e4e38e844ea532b3b039fab4dbaf2da829c4f127.zip
Merge pull request #5083 from fatalbanana/test_milter_headers
[Test] Add tests for milter_headers
Diffstat (limited to 'test/functional/configs')
-rw-r--r--test/functional/configs/milter_headers.conf24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/configs/milter_headers.conf b/test/functional/configs/milter_headers.conf
new file mode 100644
index 000000000..947bc28dd
--- /dev/null
+++ b/test/functional/configs/milter_headers.conf
@@ -0,0 +1,24 @@
+lua = "{= env.TESTDIR =}/lua/simple.lua"
+
+.include(duplicate=append,priority=0) "{= env.TESTDIR =}/configs/plugins.conf"
+
+milter_headers {
+
+ use = ["remove-headers", "x-spam-level", "x-spamd-bar", "x-virus"];
+
+ routines {
+ remove-headers {
+ headers {
+ "X-Spam-Level" = 0,
+ }
+ }
+ x-spamd-bar {
+ header = "My-Spamd-Bar";
+ remove = null;
+ }
+ x-virus {
+ symbols = ["SIMPLE_TEST"];
+ }
+ }
+
+}