diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-28 22:31:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-28 22:31:52 +0000 |
commit | 3e6f598582a6d49e29ad7f2256be8a9745129d0e (patch) | |
tree | f93b4fb5bd6b2270c7ec87dfa76ead9af0bab9b9 /test | |
parent | 87f9e5050002ba9cebbdd9e35d26caacad56b907 (diff) | |
parent | 68cb5ea8c9b0b6437a60f1deb84b62691b0b62bc (diff) | |
download | rspamd-3e6f598582a6d49e29ad7f2256be8a9745129d0e.tar.gz rspamd-3e6f598582a6d49e29ad7f2256be8a9745129d0e.zip |
Merge pull request #3561 from fatalbanana/multimap_disable_multisymbol
[Feature] Multimap: support adding map values as extra options
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/102_multimap.robot | 4 | ||||
-rw-r--r-- | test/functional/configs/multimap.conf | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/cases/102_multimap.robot b/test/functional/cases/102_multimap.robot index 701714264..fc93d7565 100644 --- a/test/functional/cases/102_multimap.robot +++ b/test/functional/cases/102_multimap.robot @@ -332,6 +332,10 @@ FREEMAIL_CC Scan File ${FREEMAIL_CC} Expect Symbol With Score And Exact Options FREEMAIL_CC 19.00 test.com test1.com test2.com test3.com test4.com test5.com test6.com test7.com test8.com test9.com test10.com test11.com test12.com test13.com test14.com +MAP - MULTISYMBOL DISABLED + Scan File ${MESSAGE} Rcpt=user3@example.com + Expect Symbol With Exact Options RCPT_MAP_NOMULTISYM user3@example.com SYM1 + *** Keywords *** Multimap Setup ${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/multimap.conf diff --git a/test/functional/configs/multimap.conf b/test/functional/configs/multimap.conf index d4fad0e16..9158f657c 100644 --- a/test/functional/configs/multimap.conf +++ b/test/functional/configs/multimap.conf @@ -56,6 +56,13 @@ multimap { map = "${TESTDIR}/configs/maps/multiple.list"; score = 1.0; } + RCPT_MAP_NOMULTISYM { + type = "rcpt"; + filter = "email:addr"; + disable_multisymbol = true; + map = "${TESTDIR}/configs/maps/multiple.list"; + score = 1.0; + } HEADER_MAP { type = "header"; header = "To"; |