1
0
Mirror von https://github.com/rspamd/rspamd.git synchronisiert 2024-07-30 08:18:31 +02:00
rspamd/test/functional/configs/regexp.conf
2019-01-24 13:37:06 +00:00

57 Zeilen
1.8 KiB
Plaintext

regexp {
SA_BODY_WORD_BOUNDARY_ON_NEWLINE {
re = '/\\bhello\\s/{sa_body}',
score = 0.0,
description = 'Test if word boundary works correctly on sa_body regexes',
group = 'body',
}
SA_BODY_WORD {
re = '/hello/{sa_body}',
score = 0.0,
description = 'Test if regex works at all in sa_body',
group = 'body',
}
SA_BODY_WORD_WITH_NEWLINE {
re = '/helloworld/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should not work!)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE {
re = '/hello world/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_BOUNDARIES {
re = '/\\bhello world\\b/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_BOUNDARIES_2 {
re = '/\\shello\\sworld\\s/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_BOUNDARIES_3 {
re = '/\\shello\\sworld\\sthis\\s/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
SA_BODY_WORD_WITH_SPACE_AND_DOT {
re = '/\\bword\\.\\sagain\\b/{sa_body}',
score = 0.0,
description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
group = 'body',
}
}
options {
dynamic_conf = "${TESTDIR}/configs/dynamic.conf";
}
lua = "${TESTDIR}/lua/regex_test.lua"