58ec4a10cd
ok merdely@ (old maintainer)
52 lines
1.9 KiB
Plaintext
52 lines
1.9 KiB
Plaintext
$OpenBSD: patch-FuzzyOcr_cf,v 1.3 2012/07/09 21:04:03 giovanni Exp $
|
|
--- FuzzyOcr.cf.orig Thu May 28 00:16:00 2009
|
|
+++ FuzzyOcr.cf Thu Jul 5 12:30:02 2012
|
|
@@ -1,7 +1,7 @@
|
|
# Syntax:
|
|
# loadplugin <Plugin_Name> <Location>
|
|
# <Location> path where Plugin resides.
|
|
-loadplugin FuzzyOcr FuzzyOcr.pm
|
|
+loadplugin FuzzyOcr
|
|
|
|
body FUZZY_OCR eval:fuzzyocr_check()
|
|
body FUZZY_OCR_WRONG_CTYPE eval:dummy_check()
|
|
@@ -43,7 +43,7 @@ priority FUZZY_OCR 900
|
|
|
|
# Logfile (make sure it is writable by the plugin)
|
|
# Default value: none
|
|
-#focr_logfile /tmp/FuzzyOcr.log
|
|
+focr_logfile /var/db/spamassassin/FuzzyOcr.log
|
|
|
|
###
|
|
### Wordlists
|
|
@@ -96,7 +96,7 @@ priority FUZZY_OCR 900
|
|
|
|
# Include additional scanner/preprocessor commands here:
|
|
#
|
|
-focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
|
|
+focr_bin_helper pnmnorm, pnminvert, pamditherbw, ppmtopgm, pamtopnm
|
|
focr_bin_helper tesseract
|
|
|
|
# These helpers must be defined before enabling PDF scanning
|
|
@@ -314,17 +314,17 @@ focr_bin_helper tesseract
|
|
# If the image hash database feature is enabled (Type 1 Hashing),
|
|
# specify the file to use as database
|
|
# Default value: /etc/mail/spamassassin/FuzzyOcr.hashdb
|
|
-#focr_digest_db /etc/mail/spamassassin/FuzzyOcr.hashdb
|
|
+focr_digest_db /var/db/spamassassin/FuzzyOcr.hashdb
|
|
|
|
# If the image hash db feature is enabled (Type 2 Hashing),
|
|
# specify the file to use as the SPAM database
|
|
# Default value: /etc/mail/spamassassin/FuzzyOcr.db
|
|
-#focr_db_hash /etc/mail/spamassassin/FuzzyOcr.db
|
|
+focr_db_hash /var/db/spamassassin/FuzzyOcr.db
|
|
|
|
# If the image hash db feature is enabled (Type 2 Hashing),
|
|
# specify the file to use as the HAM database
|
|
# Default value: /etc/mail/spamassassin/FuzzyOcr.safe.db
|
|
-#focr_db_safe /etc/mail/spamassassin/FuzzyOcr.safe.db
|
|
+focr_db_safe /var/db/spamassassin/FuzzyOcr.safe.db
|
|
|
|
# Auto-prune: Expire records from hasing databases after these many days
|
|
# Default value: 35
|