commit 8b8ee6a: [Test] Add a test for SUBJECT_HAS_CURRENCY rule
Vsevolod Stakhov
vsevolod at rspamd.com
Sun Oct 30 08:35:05 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-10-29 21:48:25 +0100
URL: https://github.com/rspamd/rspamd/commit/8b8ee6a3eaef4427b650e97eec8db4455193bfa5 (HEAD -> master)
[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(+)
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
More information about the Commits
mailing list