From 211051d6bc542f0e30f6863695d1973e6fcf472f Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 12 Oct 2020 15:20:14 +0200 Subject: [Feature] RBL: support use of multiple selectors --- test/functional/cases/300_rbl.robot | 5 +++++ test/functional/configs/rbl.conf | 13 +++++++++++++ 2 files changed, 18 insertions(+) (limited to 'test') 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()"; + } + } } } -- cgit v1.2.3