patch-FuzzyOcr_cf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. $OpenBSD: patch-FuzzyOcr_cf,v 1.3 2012/07/09 21:04:03 giovanni Exp $
  2. --- FuzzyOcr.cf.orig Thu May 28 00:16:00 2009
  3. +++ FuzzyOcr.cf Thu Jul 5 12:30:02 2012
  4. @@ -1,7 +1,7 @@
  5. # Syntax:
  6. # loadplugin <Plugin_Name> <Location>
  7. # <Location> path where Plugin resides.
  8. -loadplugin FuzzyOcr FuzzyOcr.pm
  9. +loadplugin FuzzyOcr
  10. body FUZZY_OCR eval:fuzzyocr_check()
  11. body FUZZY_OCR_WRONG_CTYPE eval:dummy_check()
  12. @@ -43,7 +43,7 @@ priority FUZZY_OCR 900
  13. # Logfile (make sure it is writable by the plugin)
  14. # Default value: none
  15. -#focr_logfile /tmp/FuzzyOcr.log
  16. +focr_logfile /var/db/spamassassin/FuzzyOcr.log
  17. ###
  18. ### Wordlists
  19. @@ -96,7 +96,7 @@ priority FUZZY_OCR 900
  20. # Include additional scanner/preprocessor commands here:
  21. #
  22. -focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
  23. +focr_bin_helper pnmnorm, pnminvert, pamditherbw, ppmtopgm, pamtopnm
  24. focr_bin_helper tesseract
  25. # These helpers must be defined before enabling PDF scanning
  26. @@ -314,17 +314,17 @@ focr_bin_helper tesseract
  27. # If the image hash database feature is enabled (Type 1 Hashing),
  28. # specify the file to use as database
  29. # Default value: /etc/mail/spamassassin/FuzzyOcr.hashdb
  30. -#focr_digest_db /etc/mail/spamassassin/FuzzyOcr.hashdb
  31. +focr_digest_db /var/db/spamassassin/FuzzyOcr.hashdb
  32. # If the image hash db feature is enabled (Type 2 Hashing),
  33. # specify the file to use as the SPAM database
  34. # Default value: /etc/mail/spamassassin/FuzzyOcr.db
  35. -#focr_db_hash /etc/mail/spamassassin/FuzzyOcr.db
  36. +focr_db_hash /var/db/spamassassin/FuzzyOcr.db
  37. # If the image hash db feature is enabled (Type 2 Hashing),
  38. # specify the file to use as the HAM database
  39. # Default value: /etc/mail/spamassassin/FuzzyOcr.safe.db
  40. -#focr_db_safe /etc/mail/spamassassin/FuzzyOcr.safe.db
  41. +focr_db_safe /var/db/spamassassin/FuzzyOcr.safe.db
  42. # Auto-prune: Expire records from hasing databases after these many days
  43. # Default value: 35