openbsd-ports/mail/p5-FuzzyOcr/patches/patch-FuzzyOcr_cf
merdely 2a813080bc FuzzyOcr is a plugin for SpamAssassin which is aimed at unsolicited bulk
mail (also known as "Spam") containing images as the main content
carrier. Using different methods, it analyzes the content and properties
of images to distinguish between normal mails (Ham) and spam mails. The
methods mainly are:

* Optical Character Recognition using different engines and settings
* Fuzzy word matching algorithm applied to OCR results
* Image hashing system to learn unique properties of known spam images
* Dimension, size and integrity checking of images
* Content-Type verification for the containing email

Help from William Yodlowsky <bsd () openbsd.rutgers.edu>
Help and ok steven@, simon@
2007-10-04 19:53:49 +00:00

54 lines
2.0 KiB
Plaintext

$OpenBSD: patch-FuzzyOcr_cf,v 1.1.1.1 2007/10/04 19:53:49 merdely Exp $
--- FuzzyOcr.cf.orig Tue Sep 4 13:31:13 2007
+++ FuzzyOcr.cf Tue Oct 2 12:25:00 2007
@@ -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,8 +96,8 @@ priority FUZZY_OCR 900
# Include additional scanner/preprocessor commands here:
#
-focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
-focr_bin_helper tesseract
+focr_bin_helper pnmnorm, pnminvert, pamditherbw, ppmtopgm, pamtopnm
+#focr_bin_helper tesseract
# These helpers must be defined before enabling PDF scanning
#focr_bin_helper pdfinfo, pdftops, pstopnm
@@ -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