You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

regexp.conf 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. regexp {
  2. SA_BODY_WORD_BOUNDARY_ON_NEWLINE {
  3. re = '/\\bhello\\s/{sa_body}',
  4. score = 0.0,
  5. description = 'Test if word boundary works correctly on sa_body regexes',
  6. group = 'body',
  7. }
  8. SA_BODY_WORD {
  9. re = '/hello/{sa_body}',
  10. score = 0.0,
  11. description = 'Test if regex works at all in sa_body',
  12. group = 'body',
  13. }
  14. SA_BODY_WORD_WITH_NEWLINE {
  15. re = '/helloworld/{sa_body}',
  16. score = 0.0,
  17. description = 'Test if regex matches word separated with newline (should not work!)',
  18. group = 'body',
  19. }
  20. SA_BODY_WORD_WITH_SPACE {
  21. re = '/hello world/{sa_body}',
  22. score = 0.0,
  23. description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
  24. group = 'body',
  25. }
  26. SA_BODY_WORD_WITH_SPACE_BOUNDARIES {
  27. re = '/\\bhello world\\b/{sa_body}',
  28. score = 0.0,
  29. description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
  30. group = 'body',
  31. }
  32. SA_BODY_WORD_WITH_SPACE_BOUNDARIES_2 {
  33. re = '/\\shello\\sworld\\s/{sa_body}',
  34. score = 0.0,
  35. description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
  36. group = 'body',
  37. }
  38. SA_BODY_WORD_WITH_SPACE_BOUNDARIES_3 {
  39. re = '/\\shello\\sworld\\sthis\\s/{sa_body}',
  40. score = 0.0,
  41. description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
  42. group = 'body',
  43. }
  44. SA_BODY_WORD_WITH_SPACE_AND_DOT {
  45. re = '/\\bword\\.\\sagain\\b/{sa_body}',
  46. score = 0.0,
  47. description = 'Test if regex matches word separated with newline (should work - newline is replaced with space)',
  48. group = 'body',
  49. }
  50. }
  51. options {
  52. dynamic_conf = "${TESTDIR}/configs/dynamic.conf";
  53. }
  54. dmarc { }
  55. spf { }
  56. dkim { }
  57. modules {
  58. path = "${TESTDIR}/../../src/plugins/lua/"
  59. }
  60. lua = "${TESTDIR}/lua/regex_test.lua"