diff options
author | Andrew Lewis <nerf@judo.za.org> | 2020-10-12 15:20:14 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2020-10-12 15:20:14 +0200 |
commit | 211051d6bc542f0e30f6863695d1973e6fcf472f (patch) | |
tree | e83f0247a15e4062419be5443ce0c20f2762ff77 /test | |
parent | f1efd55e9d9afdc0bdee58c7b54dbff361e85363 (diff) | |
download | rspamd-211051d6bc542f0e30f6863695d1973e6fcf472f.tar.gz rspamd-211051d6bc542f0e30f6863695d1973e6fcf472f.zip |
[Feature] RBL: support use of multiple selectors
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/300_rbl.robot | 5 | ||||
-rw-r--r-- | test/functional/configs/rbl.conf | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/cases/300_rbl.robot b/test/functional/cases/300_rbl.robot index 64fa8aff3..17fd4f19c 100644 --- a/test/functional/cases/300_rbl.robot +++ b/test/functional/cases/300_rbl.robot @@ -58,6 +58,11 @@ CONTENT URLS Expect Symbol With Option URIBL_WITHCONTENT 8.8.8.8:url Expect Symbol With Exact Options URIBL_CONTENTONLY example.com:url +SELECTORS + Scan File ${TESTDIR}/messages/btc.eml From=user@example.com Helo=example.org + Expect Symbol With Exact Options RBL_SELECTOR_SINGLE example.org:selector + Expect Symbol With Option RBL_SELECTOR_MULTIPLE example.com:sel_from + Expect Symbol With Option RBL_SELECTOR_MULTIPLE example.org:sel_helo *** Keywords *** Rbl Setup diff --git a/test/functional/configs/rbl.conf b/test/functional/configs/rbl.conf index 2f8cea637..4999e60d7 100644 --- a/test/functional/configs/rbl.conf +++ b/test/functional/configs/rbl.conf @@ -58,5 +58,18 @@ rbl { content_urls = true; no_ip = true; } + RBL_SELECTOR_SINGLE { + rbl = "test9.uribl"; + ignore_defaults = true; + selector = "helo()"; + } + RBL_SELECTOR_MULTIPLE { + rbl = "test9.uribl"; + ignore_defaults = true; + selector = { + sel_from = "from('smtp'):domain"; + sel_helo = "helo()"; + } + } } } |