]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add a test for SUBJECT_HAS_CURRENCY rule
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 29 Oct 2022 20:48:25 +0000 (21:48 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 29 Oct 2022 20:48:25 +0000 (21:48 +0100)
test/functional/cases/001_merged/280_rules.robot
test/functional/messages/currency.eml [new file with mode: 0644]

index f98e6445d063c122d709cdb0243eaa247a0a067a..b7cbe8146a4c3843d8273a1d44bf8bd15d0f4eab 100644 (file)
@@ -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 (file)
index 0000000..d00ea21
--- /dev/null
@@ -0,0 +1,5 @@
+From: <>
+Subject: £600
+Content-Type: text/plain
+
+test