home *** CD-ROM | disk | FTP | other *** search
/ ftp.f-secure.com / 2014.06.ftp.f-secure.com.tar / ftp.f-secure.com / support / hotfix / fsis / IS-SpamControl.fsfix / iufssc / rules / 25_hashcash.cf < prev    next >
Text File  |  2006-11-29  |  3KB  |  60 lines

  1. # SpamAssassin - Hashcash rules
  2. #
  3. # Please don't modify this file as your changes will be overwritten with
  4. # the next update. Use @@LOCAL_RULES_DIR@@/local.cf instead.
  5. # See 'perldoc Mail::SpamAssassin::Conf' for details.
  6. #
  7. # <@LICENSE>
  8. # Copyright 2004 Apache Software Foundation
  9. #
  10. # Licensed under the Apache License, Version 2.0 (the "License");
  11. # you may not use this file except in compliance with the License.
  12. # You may obtain a copy of the License at
  13. #
  14. #     http://www.apache.org/licenses/LICENSE-2.0
  15. #
  16. # Unless required by applicable law or agreed to in writing, software
  17. # distributed under the License is distributed on an "AS IS" BASIS,
  18. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. # See the License for the specific language governing permissions and
  20. # limitations under the License.
  21. # </@LICENSE>
  22. #
  23. ###########################################################################
  24.  
  25. # Requires the Mail::SpamAssassin::Plugin::Hashcash plugin be loaded.
  26.  
  27. ifplugin Mail::SpamAssassin::Plugin::Hashcash
  28.  
  29. header HASHCASH_20            eval:check_hashcash_value('20', '21')
  30. header HASHCASH_21            eval:check_hashcash_value('21', '22')
  31. header HASHCASH_22            eval:check_hashcash_value('22', '23')
  32. header HASHCASH_23            eval:check_hashcash_value('23', '24')
  33. header HASHCASH_24            eval:check_hashcash_value('24', '25')
  34. header HASHCASH_25            eval:check_hashcash_value('25', '26')
  35. header HASHCASH_HIGH          eval:check_hashcash_value('26', '9999')
  36. tflags HASHCASH_20            nice userconf
  37. tflags HASHCASH_21            nice userconf
  38. tflags HASHCASH_22            nice userconf
  39. tflags HASHCASH_23            nice userconf
  40. tflags HASHCASH_24            nice userconf
  41. tflags HASHCASH_25            nice userconf
  42. tflags HASHCASH_HIGH          nice userconf
  43. describe HASHCASH_20          Contains valid Hashcash token (20 bits)
  44. describe HASHCASH_21          Contains valid Hashcash token (21 bits)
  45. describe HASHCASH_22          Contains valid Hashcash token (22 bits)
  46. describe HASHCASH_23          Contains valid Hashcash token (23 bits)
  47. describe HASHCASH_24          Contains valid Hashcash token (24 bits)
  48. describe HASHCASH_25          Contains valid Hashcash token (25 bits)
  49. describe HASHCASH_HIGH        Contains valid Hashcash token (>25 bits)
  50.  
  51. # This should NOT be a high score; it's possible for this to happen if
  52. # a mail is sent to a list, and CC'd to you.   However, if it does fire,
  53. # it'll cancel out the hashcash "bonus" rule.
  54. #
  55. header HASHCASH_2SPEND        eval:check_hashcash_double_spend()
  56. describe HASHCASH_2SPEND      Hashcash token already spent in another mail
  57. tflags HASHCASH_2SPEND        userconf
  58.  
  59. endif   # Mail::SpamAssassin::Plugin::Hashcash
  60.