diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-05 12:56:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-05 12:56:21 +0000 |
commit | 7c63add10c03134013fc186a5ac49cdb2d22eca2 (patch) | |
tree | 59c25307d6d1571456d3d88d2e83e1f4120f982d /test/functional | |
parent | 5ab536d145cedf15bb071914b8b71e07be20e8c4 (diff) | |
download | rspamd-7c63add10c03134013fc186a5ac49cdb2d22eca2.tar.gz rspamd-7c63add10c03134013fc186a5ac49cdb2d22eca2.zip |
[Fix] Composites: Allow partial match
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/cases/109_composites.robot | 6 | ||||
-rw-r--r-- | test/functional/configs/composites.conf | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/cases/109_composites.robot b/test/functional/cases/109_composites.robot index 4fb3aee3d..ef154603a 100644 --- a/test/functional/cases/109_composites.robot +++ b/test/functional/cases/109_composites.robot @@ -70,3 +70,9 @@ Composites - Opts RE Hit 2 Expect Symbol With Score SYMOPTS3 6.00 Do Not Expect Symbol SYMOPTS2 Do Not Expect Symbol SYMOPTS1 + +Composites - Opts RE Hit 3 + Scan File ${MESSAGE} opts=example.com->app.link + Expect Symbol With Score SYMOPTS4 6.00 + Do Not Expect Symbol SYMOPTS2 + Do Not Expect Symbol SYMOPTS1
\ No newline at end of file diff --git a/test/functional/configs/composites.conf b/test/functional/configs/composites.conf index d57e09818..71e453def 100644 --- a/test/functional/configs/composites.conf +++ b/test/functional/configs/composites.conf @@ -80,4 +80,8 @@ composites { expression = 'OPTS[sym2,/FoO\\//i]'; score = 6.0; } + SYMOPTS4 { + expression = 'POSITIVE_A & OPTS[/>app.link$/i] & EXPRESSIONS'; + score = 6.0; + } } |