summaryrefslogtreecommitdiff
path: root/mail/p5-FuzzyOcr-devel/files/patch-FuzzyOcr.cf
blob: f67bce570a0fd9bbc009c97c2df349b3ef76f28d (plain) (blame)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
--- FuzzyOcr.cf.orig	2009-05-29 23:10:39.000000000 +0300
+++ FuzzyOcr.cf	2009-05-29 23:21:13.000000000 +0300
@@ -1,7 +1,7 @@
 # Syntax:
 # loadplugin <Plugin_Name> <Location>
 #  <Location> path where Plugin resides.
-loadplugin FuzzyOcr FuzzyOcr.pm
+loadplugin Mail::SpamAssassin::Plugin::FuzzyOcr
 
 body     FUZZY_OCR                   eval:fuzzyocr_check()
 body     FUZZY_OCR_WRONG_CTYPE       eval:dummy_check()
@@ -50,8 +50,8 @@
 ###
 
 # 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: /usr/local/etc/mail/spamassassin/FuzzyOcr.words
+#focr_global_wordlist /usr/local/etc/mail/spamassassin/FuzzyOcr.words
 #
 # This is the path RELATIVE to the respective home directory
 # for the personalized list. This list is merged with the global 
@@ -96,7 +96,7 @@
 
 # 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
@@ -109,7 +109,7 @@
 ###
 
 # Search path for locating helper applications
-#focr_path_bin /usr/local/netpbm/bin:/usr/local/bin:/usr/bin
+#focr_path_bin /usr/local/netpbm/bin:/usr/local/bin:/usr/local/bin
 
 ###
 ### Step 3:
@@ -117,25 +117,25 @@
 ### the search path algorithm. Please note that if the helper app is not
 ### previously defined, it will generate an error:
 
-#focr_bin_gifsicle /usr/bin/gifsicle
-#focr_bin_giffix /usr/bin/giffix
-#focr_bin_giftext /usr/bin/giftext
-#focr_bin_gifinter /usr/bin/gifinter
-#focr_bin_giftopnm /usr/bin/giftopnm
-#focr_bin_jpegtopnm /usr/bin/jpegtopnm
-#focr_bin_pngtopnm /usr/bin/pngtopnm
-#focr_bin_bmptopnm /usr/bin/bmptopnm
-#focr_bin_tifftopnm /usr/bin/tifftopnm
-#focr_bin_ppmhist /usr/bin/ppmhist
-#focr_bin_gocr /usr/bin/gocr
-#focr_bin_ocrad /usr/bin/ocrad
-
-#focr_bin_pnmnorm /usr/bin/pnmnorm
-#focr_bin_pnminvert /usr/bin/pnminvert
-
-#focr_bin_pdfinfo /usr/bin/pdfinfo
-#focr_bin_pdftops /usr/bin/pdftops
-#focr_bin_pstopnm /usr/bin/pstopnm
+#focr_bin_gifsicle /usr/local/bin/gifsicle
+#focr_bin_giffix /usr/local/bin/giffix
+#focr_bin_giftext /usr/local/bin/giftext
+#focr_bin_gifinter /usr/local/bin/gifinter
+#focr_bin_giftopnm /usr/local/bin/giftopnm
+#focr_bin_jpegtopnm /usr/local/bin/jpegtopnm
+#focr_bin_pngtopnm /usr/local/bin/pngtopnm
+#focr_bin_bmptopnm /usr/local/bin/bmptopnm
+#focr_bin_tifftopnm /usr/local/bin/tifftopnm
+#focr_bin_ppmhist /usr/local/bin/ppmhist
+#focr_bin_gocr /usr/local/bin/gocr
+#focr_bin_ocrad /usr/local/bin/ocrad
+
+#focr_bin_pnmnorm /usr/local/bin/pnmnorm
+#focr_bin_pnminvert /usr/local/bin/pnminvert
+
+#focr_bin_pdfinfo /usr/local/bin/pdfinfo
+#focr_bin_pdftops /usr/local/bin/pdftops
+#focr_bin_pstopnm /usr/local/bin/pstopnm
 
 ###
 ### Scansets 
@@ -143,8 +143,8 @@
 
 # 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 /usr/local/etc/mail/spamassassin/FuzzyOcr.preps
+#focr_scanset_file /usr/local/etc/mail/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 +313,18 @@
 
 # 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: /usr/local/etc/mail/spamassassin/FuzzyOcr.hashdb
+#focr_digest_db /usr/local/etc/mail/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: /usr/local/etc/mail/spamassassin/FuzzyOcr.db
+#focr_db_hash /usr/local/etc/mail/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: /usr/local/etc/mail/spamassassin/FuzzyOcr.safe.db
+#focr_db_safe /usr/local/etc/mail/spamassassin/FuzzyOcr.safe.db
 
 # Auto-prune: Expire records from hasing databases after these many days
 # Default value: 35
@@ -352,7 +352,7 @@
 #  + score, 
 #  + word-info
 # Default value: 0
-#focr_mysql_update_hash 1
+focr_mysql_update_hash 0
 
 ###
 ### Miscellaneous Options