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.

composites.lua 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. rspamd_config:register_symbol({
  2. name = 'EXPRESSIONS_B',
  3. score = 1.0,
  4. callback = function()
  5. return true, 'Fires always'
  6. end
  7. })
  8. rspamd_config:register_symbol({
  9. name = 'POLICY_REMOVE_WEIGHT_A',
  10. score = 1.0,
  11. callback = function()
  12. return true, 'Fires always'
  13. end
  14. })
  15. rspamd_config:register_symbol({
  16. name = 'POLICY_REMOVE_WEIGHT_B',
  17. score = 1.0,
  18. callback = function()
  19. return true, 'Fires always'
  20. end
  21. })
  22. rspamd_config:register_symbol({
  23. name = 'POLICY_FORCE_REMOVE_A',
  24. score = 1.0,
  25. callback = function()
  26. return true, 'Fires always'
  27. end
  28. })
  29. rspamd_config:register_symbol({
  30. name = 'POLICY_FORCE_REMOVE_B',
  31. score = 1.0,
  32. callback = function()
  33. return true, 'Fires always'
  34. end
  35. })
  36. rspamd_config:register_symbol({
  37. name = 'POLICY_LEAVE_A',
  38. score = 1.0,
  39. callback = function()
  40. return true, 'Fires always'
  41. end
  42. })
  43. rspamd_config:register_symbol({
  44. name = 'POLICY_LEAVE_B',
  45. score = 1.0,
  46. callback = function()
  47. return true, 'Fires always'
  48. end
  49. })
  50. rspamd_config:register_symbol({
  51. name = 'DEFAULT_POLICY_REMOVE_WEIGHT_A',
  52. score = 1.0,
  53. callback = function()
  54. return true, 'Fires always'
  55. end
  56. })
  57. rspamd_config:register_symbol({
  58. name = 'DEFAULT_POLICY_REMOVE_WEIGHT_B',
  59. score = 1.0,
  60. callback = function()
  61. return true, 'Fires always'
  62. end
  63. })
  64. rspamd_config:register_symbol({
  65. name = 'DEFAULT_POLICY_REMOVE_SYMBOL_A',
  66. score = 1.0,
  67. callback = function()
  68. return true, 'Fires always'
  69. end
  70. })
  71. rspamd_config:register_symbol({
  72. name = 'DEFAULT_POLICY_REMOVE_SYMBOL_B',
  73. score = 1.0,
  74. callback = function()
  75. return true, 'Fires always'
  76. end
  77. })
  78. rspamd_config:register_symbol({
  79. name = 'DEFAULT_POLICY_LEAVE_A',
  80. score = 1.0,
  81. callback = function()
  82. return true, 'Fires always'
  83. end
  84. })
  85. rspamd_config:register_symbol({
  86. name = 'DEFAULT_POLICY_LEAVE_B',
  87. score = 1.0,
  88. callback = function()
  89. return true, 'Fires always'
  90. end
  91. })
  92. rspamd_config:register_symbol({
  93. name = 'POSITIVE_A',
  94. score = -1.0,
  95. group = "positive",
  96. callback = function()
  97. return true, 'Fires always'
  98. end
  99. })
  100. rspamd_config:register_symbol({
  101. name = 'NEGATIVE_A',
  102. score = -1.0,
  103. group = "negative",
  104. callback = function()
  105. return true, 'Fires always'
  106. end
  107. })
  108. rspamd_config:register_symbol({
  109. name = 'NEGATIVE_B',
  110. score = 1.0,
  111. group = "negative",
  112. callback = function()
  113. return true, 'Fires always'
  114. end
  115. })
  116. rspamd_config:register_symbol({
  117. name = 'ANY_A',
  118. score = -1.0,
  119. group = "any",
  120. callback = function()
  121. return true, 'Fires always'
  122. end
  123. })