diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-29 21:48:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-29 21:48:25 +0100 |
commit | 8b8ee6a3eaef4427b650e97eec8db4455193bfa5 (patch) | |
tree | 833cc9cba05d0c49cafedc29429eab0328b2d57f /test | |
parent | 4ae8a27cb173fc330cb0666085aadb21affa8337 (diff) | |
download | rspamd-8b8ee6a3eaef4427b650e97eec8db4455193bfa5.tar.gz rspamd-8b8ee6a3eaef4427b650e97eec8db4455193bfa5.zip |
[Test] Add a test for SUBJECT_HAS_CURRENCY rule
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/001_merged/280_rules.robot | 4 | ||||
-rw-r--r-- | test/functional/messages/currency.eml | 5 |
2 files changed, 9 insertions, 0 deletions
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 |