From 8b8ee6a3eaef4427b650e97eec8db4455193bfa5 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 29 Oct 2022 21:48:25 +0100 Subject: [PATCH] [Test] Add a test for SUBJECT_HAS_CURRENCY rule --- test/functional/cases/001_merged/280_rules.robot | 4 ++++ test/functional/messages/currency.eml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 test/functional/messages/currency.eml diff --git a/test/functional/cases/001_merged/280_rules.robot b/test/functional/cases/001_merged/280_rules.robot index f98e6445d..b7cbe8146 100644 --- a/test/functional/cases/001_merged/280_rules.robot +++ b/test/functional/cases/001_merged/280_rules.robot @@ -133,3 +133,7 @@ REPLYTO_ADDR_EQ_FROM ... Settings={symbols_enabled = [REPLYTO_ADDR_EQ_FROM]} Expect Symbol REPLYTO_ADDR_EQ_FROM +SUBJECT_HAS_CURRENCY + Scan File ${RSPAMD_TESTDIR}/messages/currency.eml + ... Settings={symbols_enabled = [SUBJECT_HAS_CURRENCY]} + Expect Symbol SUBJECT_HAS_CURRENCY diff --git a/test/functional/messages/currency.eml b/test/functional/messages/currency.eml new file mode 100644 index 000000000..d00ea2130 --- /dev/null +++ b/test/functional/messages/currency.eml @@ -0,0 +1,5 @@ +From: <> +Subject: £600 +Content-Type: text/plain + +test -- 2.39.5