1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
--- fuzzyocr-svn-135.orig/FuzzyOcr.cf
+++ fuzzyocr-svn-135/FuzzyOcr.cf
@@ -1,7 +1,10 @@
# Syntax:
# loadplugin <Plugin_Name> <Location>
# <Location> path where Plugin resides.
-loadplugin FuzzyOcr FuzzyOcr.pm
+
+loadplugin FuzzyOcr
+
+ifplugin FuzzyOcr
body FUZZY_OCR eval:fuzzyocr_check()
body FUZZY_OCR_WRONG_CTYPE eval:dummy_check()
@@ -50,8 +53,8 @@ priority FUZZY_OCR 900
###
# Here we defined the words to scan for
-# Default value: /etc/mail/spamassassin/FuzzyOcr.words
-#focr_global_wordlist /etc/mail/spamassassin/FuzzyOcr.words
+# Default value: /etc/spamassassin/FuzzyOcr.words
+#focr_global_wordlist /etc/spamassassin/FuzzyOcr.words
#
# This is the path RELATIVE to the respective home directory
# for the personalized list. This list is merged with the global
@@ -143,8 +146,8 @@ focr_bin_helper tesseract
# Paths to the files containing Scansets and Preprocessors definitions
#
-#focr_preprocessor_file /etc/mail/spamassassin/FuzzyOcr.preps
-#focr_scanset_file /etc/mail/spamassassin/FuzzyOcr.scansets
+#focr_preprocessor_file /etc/spamassassin/FuzzyOcr.preps
+#focr_scanset_file /etc/spamassassin/FuzzyOcr.scansets
# Setting this to 1 will cause FuzzyOcr to skip all other scansets,
# if a scanset has reached the amount of hits specified in
@@ -313,18 +316,18 @@ 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
+# Default value: /etc/spamassassin/FuzzyOcr.hashdb
+#focr_digest_db /etc/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
+# Default value: /etc/spamassassin/FuzzyOcr.db
+#focr_db_hash /etc/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
+# Default value: /etc/spamassassin/FuzzyOcr.safe.db
+#focr_db_safe /etc/spamassassin/FuzzyOcr.safe.db
# Auto-prune: Expire records from hasing databases after these many days
# Default value: 35
@@ -374,3 +377,5 @@ focr_bin_helper tesseract
#################################################################
# DO NOT REMOVE THIS LINE, IT IS REQUIRED UNDER ALL CIRCUMSTANCES
focr_end_config
+
+endif
--- fuzzyocr-svn-135.orig/FuzzyOcr.pm
+++ fuzzyocr-svn-135/FuzzyOcr.pm
@@ -36,7 +36,7 @@ use Time::HiRes qw( gettimeofday tv_inte
use String::Approx 'adistr';
use FileHandle;
-use lib qw(/etc/mail/spamassassin); # Allow placing of FuzzyOcr in siteconfigdir
+use lib qw(/etc/spamassassin); # Allow placing of FuzzyOcr in siteconfigdir
use FuzzyOcr::Logging qw(debuglog errorlog warnlog infolog);
use FuzzyOcr::Config qw(kill_pid
--- fuzzyocr-svn-135.orig/FuzzyOcr.words
+++ fuzzyocr-svn-135/FuzzyOcr.words
@@ -14,6 +14,7 @@ company
money::0.01
million
thousand
+portfolio
buy
price::0.2
trade
|