From: Vsevolod Stakhov Date: Sat, 29 Oct 2022 20:48:25 +0000 (+0100) Subject: [Test] Add a test for SUBJECT_HAS_CURRENCY rule X-Git-Tag: 3.4~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b8ee6a3eaef4427b650e97eec8db4455193bfa5;p=rspamd.git [Test] Add a test for SUBJECT_HAS_CURRENCY rule --- 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