You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert Nicholson <ro...@gmail.com> on 2007/01/02 17:31:09 UTC

FuzzyOCR doesn't appear to be working as expected

Fuzzy OCR plugin doesn't appear to be working as expected. Can  
anybody tell from this log why it's not firing with the sample images  
that come with the plugin?

The Plugin seems to be loading ok and I did once see it create the  
logfile but it doesn't anymore.

$ perl ~/perlscripts/filter.pl -debugLevel 1 < ./png.eml
[70857] dbg: logger: adding facilities: all
[70857] dbg: logger: logging level is DBG
[70857] dbg: generic: SpamAssassin version 3.1.7
[70857] dbg: config: score set 0 chosen.
[70857] dbg: util: running in taint mode? no
[70857] dbg: message: ---- MIME PARSER START ----
[70857] dbg: message: main message type: text/plain
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: text/plain
[70857] dbg: message: ---- MIME PARSER END ----
[70857] dbg: dns: is Net::DNS::Resolver available? yes
[70857] dbg: dns: Net::DNS version: 0.53
[70857] dbg: config: using "/home/elastica/etc/mail/spamassassin" for  
site rules pre files
[70857] dbg: config: read file /home/elastica/etc/mail/spamassassin/ 
init.pre
[70857] dbg: config: read file /home/elastica/etc/mail/spamassassin/ 
v310.pre
[70857] dbg: config: read file /home/elastica/etc/mail/spamassassin/ 
v312.pre
[70857] dbg: config: using "/home/elastica/share/spamassassin" for  
sys rules pre files
[70857] dbg: config: using "/home/elastica/share/spamassassin" for  
default rules dir
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
10_misc.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_advance_fee.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_anti_ratware.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_body_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_compensate.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_dnsbl_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_drugs.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_fake_helo_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_head_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_html_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_meta_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_net_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_phrases.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_porn.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_ratware.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
20_uri_tests.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
23_bayes.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_accessdb.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_antivirus.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_body_tests_es.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_body_tests_pl.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_dcc.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_dkim.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_domainkeys.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_hashcash.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_pyzor.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_razor2.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_replace.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_spf.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_textcat.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
25_uribl.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
30_text_de.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
30_text_fr.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
30_text_it.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
30_text_nl.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
30_text_pl.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
30_text_pt_br.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
50_scores.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
60_awl.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
60_whitelist.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
60_whitelist_dk.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
60_whitelist_dkim.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
60_whitelist_spf.cf
[70857] dbg: config: read file /home/elastica/share/spamassassin/ 
60_whitelist_subject.cf
[70857] dbg: config: using "/home/elastica/etc/mail/spamassassin" for  
site rules dir
[70857] dbg: config: read file /home/elastica/etc/mail/spamassassin/ 
FuzzyOcr.cf
[70857] dbg: config: read file /home/elastica/etc/mail/spamassassin/ 
local.cf
[70857] dbg: config: using "/home/elastica/.spamassassin" for user  
state dir
[70857] dbg: config: using "/home/elastica/.spamassassin/user_prefs"  
for user prefs file
[70857] dbg: config: read file /home/elastica/.spamassassin/user_prefs
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL  
from @INC
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x81b2524)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash  
from @INC
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x931026c)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[70857] dbg: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH 
(0x9295488)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[70857] dbg: pyzor: network tests on, attempting Pyzor
[70857] dbg: plugin: registered Mail::SpamAssassin::Plugin::Pyzor=HASH 
(0x92c22a8)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from  
@INC
[70857] dbg: razor2: razor2 is not available
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::Razor2=HASH(0x92d5b80)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from  
@INC
[70857] dbg: reporter: network tests on, attempting SpamCop
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::SpamCop=HASH(0x94c4af8)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[70857] dbg: plugin: registered Mail::SpamAssassin::Plugin::AWL=HASH 
(0x964af40)
[70857] dbg: plugin: loading  
Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9653f40)
[70857] dbg: plugin: loading  
Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::WhiteListSubject=HASH(0x95db188)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader  
from @INC
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x9661e34)
[70857] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags  
from @INC
[70857] dbg: plugin: registered  
Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x966c694)
[70857] dbg: config: adding redirector regex: /^http:\/\/chkpt\.zdnet 
\.com\/chkpt\/\w+\/(.*)$/i
[70857] dbg: config: adding redirector regex: /^http:\/\/www(?:\d+)? 
\.nate\.com\/r\/\w+\/(.*)$/i
[70857] dbg: config: adding redirector regex: /^http:\/\/.+\.gov\/ 
(?:.*\/)?externalLink\.jhtml\?.*url=(.*?)(?:&.*)?$/i
[70857] dbg: config: adding redirector regex: /^http:\/\/redir 
\.internet\.com\/.+?\/.+?\/(.*)$/i
[70857] dbg: config: adding redirector regex: /^http:\/\/(?:.*?\.)? 
adtech\.de\/.*(?:;|\|)link=(.*?)(?:;|$)/i
[70857] dbg: config: adding redirector regex: m'^http.*?/redirect\.php 
\?.*(?<=[?&])goto=(.*?)(?:$|[&#])'i
[70857] dbg: config: adding redirector regex: m'^https?:/*(?:[^/]+\.)? 
emf\d\.com/r\.cfm.*?&r=(.*)'i
[70857] dbg: config: adding redirector regex: m'/(?:index.php)?\?.*(? 
<=[?&])URL=(.*?)(?:$|[&#])'i
[70857] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)? 
google(?:\.\w{2,3}){1,2}/url\?.*?(?<=[?&])q=(.*?)(?:$|[&#])'i
[70857] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)? 
google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s]) 
site:(.*?)(?:$|%20|[\s+&#])'i
[70857] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)? 
google(?:\.\w{2,3}){1,2}/search\?.*?(?<=[?&])q=[^&]*?(?<=%20|..[=+\s]) 
(?:"|%22)(.*?)(?:$|%22|["\s+&#])'i
[70857] dbg: config: adding redirector regex: m'^http:/*(?:\w+\.)? 
google(?:\.\w{2,3}){1,2}/translate\?.*?(?<=[?&])u=(.*?)(?:$|[&#])'i
[70857] dbg: plugin: fixed relative path: /home/elastica/etc/mail/ 
spamassassin/FuzzyOcr.pm
[70857] dbg: plugin: loading FuzzyOcr from /home/elastica/etc/mail/ 
spamassassin/FuzzyOcr.pm
[70857] dbg: plugin: registered FuzzyOcr=HASH(0x96f1c10)
[70857] dbg: plugin: FuzzyOcr=HASH(0x96f1c10) implements 'parse_config'
[70857] info: config: failed to parse line, skipping: use_terse_report 0
[70857] info: config: failed to parse line, skipping: auto_learn 0
[70857] info: config: failed to parse, now a plugin, skipping:  
ok_languages en th it
[70857] info: config: SpamAssassin failed to parse line,  
"__CTYPE_MH_WIN1252 Content-Type =~" is not valid for "mimeheader",  
skipping: mimeheader __CTYPE_MH_WIN1252 Content-Type =~
[70857] info: config: failed to parse line, skipping: /charset= 
(\"windows-125[0-8]\"|windows-125[0-8])/i
[70857] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH 
(0x966c694) implements 'finish_parsing_end'
[70857] dbg: replacetags: replacing tags
[70857] dbg: replacetags: done replacing tags
[70857] dbg: config: using "/home/elastica/.spamassassin" for user  
state dir
[70857] dbg: bayes: tie-ing to DB file R/O /home/ 
elastica/.spamassassin/bayes_toks
[70857] dbg: bayes: tie-ing to DB file R/O /home/ 
elastica/.spamassassin/bayes_seen
[70857] dbg: bayes: found bayes db version 3
[70857] dbg: bayes: DB journal sync: last sync: 1167754636
[70857] dbg: config: using "/home/elastica/.spamassassin" for user  
state dir
[70857] dbg: config: score set 3 chosen.
[70857] dbg: dns: name server: 64.69.41.217, family: 2, ipv6: 0
[70857] dbg: dns: testing resolver nameservers: 64.69.41.217,  
216.240.130.2
[70857] dbg: dns: trying (3) google.com...
[70857] dbg: dns: looking up NS for 'google.com'
[70857] dbg: dns: NS lookup of google.com using 64.69.41.217  
succeeded => DNS available (set dns_available to override)
[70857] dbg: dns: is DNS available? 1
[70857] dbg: dns: looking up PTR record for '80.237.161.201'
[70857] dbg: dns: PTR for '80.237.161.201': 'hq.cyberarmy.de'
[70857] dbg: received-header: parsed as [ ip=80.237.161.201  
rdns=hq.cyberarmy.de helo=hq.cyberarmy.de by=mx07.web.de ident=  
envfrom= intl=0 id=1G8VvK-0000PU-00 auth= ]
[70857] dbg: dns: looking up A records for 'mx07.web.de'
[70857] dbg: dns: A records for 'mx07.web.de': 217.72.192.144
[70857] dbg: dns: looking up A records for 'mx07.web.de'
[70857] dbg: dns: A records for 'mx07.web.de': 217.72.192.144
[70857] dbg: received-header: 'by' mx07.web.de has public IP  
217.72.192.144
[70857] dbg: received-header: relay 80.237.161.201 trusted? no  
internal? no
[70857] dbg: dns: looking up PTR record for '125.234.128.39'
[70857] dbg: dns: PTR for '125.234.128.39': 'dynamic-adsl- 
hcm.vietel.com.vn'
[70857] dbg: received-header: parsed as [ ip=125.234.128.39  
rdns=dynamic-adsl-hcm.vietel.com.vn helo=thuan-bf45dbaa6  
by=hq.cyberarmy.de ident= envfrom= intl=0 id=4E4E36574037 auth= ]
[70857] dbg: received-header: relay 125.234.128.39 trusted? no  
internal? no
[70857] dbg: metadata: X-Spam-Relays-Trusted:
[70857] dbg: metadata: X-Spam-Relays-Untrusted: [ ip=80.237.161.201  
rdns=hq.cyberarmy.de helo=hq.cyberarmy.de by=mx07.web.de ident=  
envfrom= intl=0 id=1G8VvK-0000PU-00 auth= ] [ ip=125.234.128.39  
rdns=dynamic-adsl-hcm.vietel.com.vn helo=thuan-bf45dbaa6  
by=hq.cyberarmy.de ident= envfrom= intl=0 id=4E4E36574037 auth= ]
[70857] dbg: metadata: X-Spam-Relays-Internal:
[70857] dbg: metadata: X-Spam-Relays-External: [ ip=80.237.161.201  
rdns=hq.cyberarmy.de helo=hq.cyberarmy.de by=mx07.web.de ident=  
envfrom= intl=0 id=1G8VvK-0000PU-00 auth= ] [ ip=125.234.128.39  
rdns=dynamic-adsl-hcm.vietel.com.vn helo=thuan-bf45dbaa6  
by=hq.cyberarmy.de ident= envfrom= intl=0 id=4E4E36574037 auth= ]
[70857] dbg: message: ---- MIME PARSER START ----
[70857] dbg: message: main message type: multipart/related
[70857] dbg: message: parsing multipart, got boundary: ---- 
=_NextPart_000_006A_01C6B6F9.CDE95250
[70857] dbg: message: found part of type multipart/alternative,  
boundary: ----=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: parsing multipart, got boundary: ---- 
=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: found part of type text/plain, boundary: ---- 
=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: text/plain
[70857] dbg: message: found part of type text/html, boundary: ---- 
=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: text/html
[70857] dbg: message: added part, type: multipart/alternative
[70857] dbg: message: found part of type image/png, boundary: ---- 
=_NextPart_000_006A_01C6B6F9.CDE95250
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: image/png
[70857] dbg: message: ---- MIME PARSER END ----
[70857] dbg: message: decoding quoted-printable
[70857] dbg: message: decoding quoted-printable
[70857] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH 
(0x81b2524) implements 'parsed_metadata'
[70857] dbg: uri: html uri found, cid:006901c6b6bf$218a7a50 
$6c822ecf@DQ72967B
[70857] dbg: uri: cleaned html uri, cid:006901c6b6bf$218a7a50 
$6c822ecf@DQ72967B
[70857] dbg: uridnsbl: domains to query:
[70857] dbg: dns: checking RBL sbl-xbl.spamhaus.org., set sblxbl- 
lastexternal
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS A query for 201.161.237.80.sbl- 
xbl.spamhaus.org. in background
[70857] dbg: dns: checking RBL sa-accredit.habeas.com., set habeas- 
firsttrusted
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS A query for 201.161.237.80.sa- 
accredit.habeas.com. in background
[70857] dbg: dns: checking RBL sbl-xbl.spamhaus.org., set sblxbl
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 125.234.128.39,  
80.237.161.201
[70857] dbg: dns: launching DNS A query for 39.128.234.125.sbl- 
xbl.spamhaus.org. in background
[70857] dbg: dns: checking RBL sa-other.bondedsender.org., set bsp- 
untrusted
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 125.234.128.39
[70857] dbg: dns: launching DNS TXT query for 39.128.234.125.sa- 
other.bondedsender.org. in background
[70857] dbg: dns: checking RBL combined.njabl.org., set njabl- 
lastexternal
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS A query for  
201.161.237.80.combined.njabl.org. in background
[70857] dbg: dns: checking RBL combined.njabl.org., set njabl
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 125.234.128.39,  
80.237.161.201
[70857] dbg: dns: launching DNS A query for  
39.128.234.125.combined.njabl.org. in background
[70857] dbg: dns: checking RBL combined- 
HIB.dnsiplists.completewhois.com., set whois
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 125.234.128.39,  
80.237.161.201
[70857] dbg: dns: launching DNS A query for 39.128.234.125.combined- 
HIB.dnsiplists.completewhois.com. in background
[70857] dbg: dns: launching DNS A query for 201.161.237.80.combined- 
HIB.dnsiplists.completewhois.com. in background
[70857] dbg: dns: checking RBL list.dsbl.org., set dsbl-lastexternal
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS TXT query for  
201.161.237.80.list.dsbl.org. in background
[70857] dbg: dns: checking RBL bl.spamcop.net., set spamcop
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 125.234.128.39,  
80.237.161.201
[70857] dbg: dns: launching DNS TXT query for  
39.128.234.125.bl.spamcop.net. in background
[70857] dbg: dns: launching DNS TXT query for  
201.161.237.80.bl.spamcop.net. in background
[70857] dbg: dns: checking RBL sa-trusted.bondedsender.org., set bsp- 
firsttrusted
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS TXT query for 201.161.237.80.sa- 
trusted.bondedsender.org. in background
[70857] dbg: dns: checking RBL combined- 
HIB.dnsiplists.completewhois.com., set whois-lastexternal
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: checking RBL dnsbl.sorbs.net., set sorbs-lastexternal
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS A query for  
201.161.237.80.dnsbl.sorbs.net. in background
[70857] dbg: dns: checking RBL dnsbl.sorbs.net., set sorbs
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 125.234.128.39,  
80.237.161.201
[70857] dbg: dns: launching DNS A query for  
39.128.234.125.dnsbl.sorbs.net. in background
[70857] dbg: dns: checking RBL iadb.isipp.com., set iadb-firsttrusted
[70857] dbg: dns: IPs found: full-external: 80.237.161.201,  
125.234.128.39 untrusted: 80.237.161.201, 125.234.128.39 originating:
[70857] dbg: dns: only inspecting the following IPs: 80.237.161.201
[70857] dbg: dns: launching DNS A query for  
201.161.237.80.iadb.isipp.com. in background
[70857] dbg: check: running tests for priority: 0
[70857] dbg: rules: running header regexp tests; score so far=0
[70857] dbg: rules: ran header rule __HAS_MSGID ======> got hit: "<"
[70857] dbg: rules: ran header rule __HAS_MIMEOLE ======> got hit: "P"
[70857] dbg: rules: ran header rule __MSGID_OK_DIGITS ======> got  
hit: "2006080305"
[70857] dbg: rules: ran header rule __CT ======> got hit: "m"
[70857] dbg: rules: ran header rule __HAS_RCVD ======> got hit: "f"
[70857] dbg: rules: ran header rule __SANE_MSGID ======> got hit:  
"<20...@hq.cyberarmy.de>
[70857] dbg: rules: "
[70857] dbg: rules: ran header rule __OE_MUA ======> got hit:  
"Outlook Express 6."
[70857] dbg: rules: ran header rule __HAS_X_PRIORITY ======> got hit:  
"3"
[70857] dbg: rules: ran header rule __MIMEOLE_MS ======> got hit:  
"Produced By Microsoft MimeOLE"
[70857] dbg: rules: ran header rule __NEXTPART_NORMAL ======> got  
hit: "="----=_NextPart_000_006A_01C6B6F9.CDE95250""
[70857] dbg: rules: ran header rule __HAS_SUBJECT ======> got hit: "Y"
[70857] dbg: rules: ran header rule EXTRA_MPART_TYPE ======> got hit:  
"multipart/related; type="
[70857] dbg: rules: ran header rule __MSGID_OK_HOST ======> got hit:  
"@hq.cyberarmy.de>"
[70857] dbg: rules: ran header rule __HAS_OUTLOOK_IN_MAILER ======>  
got hit: "Microsoft Outlook"
[70857] dbg: rules: ran header rule __HAS_MSMAIL_PRI ======> got hit:  
"N"
[70857] dbg: rules: ran header rule __ANY_OUTLOOK_MUA ======> got  
hit: "Microsoft Outlook"
[70857] dbg: rules: ran header rule __MIME_VERSION ======> got hit: "1"
[70857] dbg: rules: ran header rule __NEXTPART_ALL ======> got hit:  
"NextPart"
[70857] dbg: rules: ran header rule __CTYPE_MULTIPART_ALT ======> got  
hit: "multipart/alternative"
[70857] dbg: rules: ran header rule __CTYPE_HAS_BOUNDARY ======> got  
hit: "boundary"
[70857] dbg: rules: ran header rule __TOCC_EXISTS ======> got hit: "<"
[70857] dbg: rules: ran header rule __HAS_X_MAILER ======> got hit: "M"
[70857] dbg: spf: checking HELO (helo=hq.cyberarmy.de,  
ip=80.237.161.201)
[70857] dbg: spf: query for /80.237.161.201/hq.cyberarmy.de: result:  
none, comment: SPF: domain of sender hq.cyberarmy.de does not  
designate mailers
[70857] dbg: eval: all '*From' addrs: BeatriceCole@0451.com
[70857] dbg: eval: forged-HELO: from=cyberarmy.de helo=cyberarmy.de  
by=web.de
[70857] dbg: eval: forged-HELO: from=vietel.com.vn helo=thuan- 
bf45dbaa6 by=cyberarmy.de
[70857] dbg: eval: trying Received header date for real time: 03 Aug  
2006 07:39:10 +0200
[70857] dbg: eval: time_t from date=1154583550, rcvd= 03 Aug 2006  
07:39:10 +0200
[70857] dbg: eval: trying Received header date for real time: 3 Aug  
2006 07:39:10 +0200
[70857] dbg: eval: time_t from date=1154583550, rcvd= 3 Aug 2006  
07:39:10 +0200
[70857] dbg: eval: trying Received header date for real time: 3 Aug  
2006 07:39:03 +0200
[70857] dbg: eval: time_t from date=1154583543, rcvd= 3 Aug 2006  
07:39:03 +0200
[70857] dbg: eval: all '*To' addrs: christian_holler@web.de  
decoder@cyberarmy.de
[70857] dbg: spf: cannot get Envelope-From, cannot use SPF
[70857] dbg: rules: ran eval rule DATE_IN_FUTURE_03_06 ======> got hit
[70857] dbg: spf: def_spf_whitelist_from: could not find useable  
envelope sender
[70857] dbg: eval: date chosen from message: Thu Aug 3 05:39:10 2006
[70857] dbg: spf: spf_whitelist_from: could not find useable envelope  
sender
[70857] dbg: rules: running body-text per-line regexp tests; score so  
far=3.052
[70857] dbg: rules: ran body rule __LONGWORDS_C ======> got hit:  
"usingmorro castlemilk testeroak treenique tracmotuca flymonk  
sakipassenger locomotiveoak thistleking number. "
[70857] dbg: rules: ran body rule __LONGWORDS_B ======> got hit:  
"usingmorro castlemilk testeroak treenique tracmotuca flymonk  
sakipassenger locomotiveoak thistleking "
[70857] dbg: rules: ran body rule __NONEMPTY_BODY ======> got hit: "Y"
[70857] dbg: uri: running uri tests; score so far=3.052
[70857] dbg: bayes: DB journal sync: last sync: 1167754636
[70857] dbg: bayes: corpus size: nspam = 12535, nham = 1117
[70857] dbg: bayes: score = 1
[70857] dbg: bayes: DB journal sync: last sync: 1167754636
[70857] dbg: bayes: untie-ing
[70857] dbg: bayes: untie-ing db_toks
[70857] dbg: bayes: untie-ing db_seen
[70857] dbg: rules: ran eval rule __TAG_EXISTS_BODY ======> got hit
[70857] dbg: eval: text words: 298, html words: 298
[70857] dbg: eval: madiff: left: 0, orig: 298, max-difference: 0.00%
[70857] dbg: rules: ran eval rule HTML_40_50 ======> got hit
[70857] dbg: rules: ran eval rule __MIME_HTML ======> got hit
[70857] dbg: rules: ran eval rule HTML_MESSAGE ======> got hit
[70857] dbg: rules: ran eval rule __TAG_EXISTS_HTML ======> got hit
[70857] dbg: rules: ran eval rule BAYES_99 ======> got hit
[70857] dbg: rules: ran eval rule __TAG_EXISTS_HEAD ======> got hit
[70857] dbg: rules: ran eval rule __TAG_EXISTS_META ======> got hit
[70857] dbg: rules: running raw-body-text per-line regexp tests;  
score so far=7.049
[70857] dbg: rules: ran eval rule __MIME_BASE64 ======> got hit
[70857] dbg: rules: ran eval rule __MIME_QP ======> got hit
[70857] dbg: rules: running full-text regexp tests; score so far=7.049
[70857] dbg: util: current PATH is: /sbin:/bin:/usr/sbin:/usr/bin:/ 
usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/ 
elastica/bin
[70857] dbg: pyzor: pyzor is not available: no pyzor executable found
[70857] dbg: pyzor: no pyzor found, disabling Pyzor
[70857] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH 
(0x81b2524) implements 'check_tick'
[70857] dbg: check: running tests for priority: 500
[70857] dbg: dns: success for 13 of 15 queries
[70857] dbg: dns: timeout for whois after 4 seconds
[70857] dbg: dns: timeout for whois,whois-lastexternal after 4 seconds
[70857] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH 
(0x81b2524) implements 'check_post_dnsbl'
[70857] dbg: rules: running meta tests; score so far=7.049
[70857] info: rules: meta test DIGEST_MULTIPLE has undefined  
dependency 'DCC_CHECK'
[70857] info: rules: meta test WIN_CHARSET has undefined dependency  
'__CTYPE_MH_HTML'
[70857] info: rules: meta test WIN_CHARSET has undefined dependency  
'__CTYPE_MH_TEXT_PLAIN'
[70857] info: rules: meta test WIN_CHARSET has undefined dependency  
'__CTYPE_MH_WIN1252'
[70857] dbg: rules: running header regexp tests; score so far=14.894
[70857] dbg: rules: running body-text per-line regexp tests; score so  
far=14.894
[70857] dbg: uri: running uri tests; score so far=14.894
[70857] dbg: rules: running raw-body-text per-line regexp tests;  
score so far=14.894
[70857] dbg: rules: running full-text regexp tests; score so far=14.894
[70857] dbg: check: running tests for priority: 900
[70857] dbg: rules: running meta tests; score so far=14.894
[70857] dbg: rules: running header regexp tests; score so far=14.894
[70857] dbg: rules: running body-text per-line regexp tests; score so  
far=14.894
[70857] dbg: uri: running uri tests; score so far=14.894
[70857] dbg: rules: running raw-body-text per-line regexp tests;  
score so far=14.894
[70857] dbg: rules: running full-text regexp tests; score so far=14.894
[70857] dbg: check: running tests for priority: 1000
[70857] dbg: rules: running meta tests; score so far=14.894
[70857] dbg: rules: running header regexp tests; score so far=14.894
[70857] dbg: config: using "/home/elastica/.spamassassin" for user  
state dir
[70857] dbg: locker: safe_lock: created /home/elastica/.spamassassin/ 
auto-whitelist.lock.kermit.lizardhill.com.70857
[70857] dbg: locker: safe_lock: trying to get lock on /home/ 
elastica/.spamassassin/auto-whitelist with 0 retries
[70857] dbg: locker: safe_lock: link to /home/elastica/.spamassassin/ 
auto-whitelist.lock: link ok
[70857] dbg: auto-whitelist: tie-ing to DB file of type DB_File R/W  
in /home/elastica/.spamassassin/auto-whitelist
[70857] dbg: auto-whitelist: db-based beatricecole@0451.com| 
ip=125.234 scores 4/59.576
[70857] dbg: auto-whitelist: AWL active, pre-score: 14.894, autolearn  
score: 14.894, mean: 14.894, IP: 125.234.128.39
[70857] dbg: auto-whitelist: add_score: new count: 5, new totscore:  
74.47
[70857] dbg: auto-whitelist: DB addr list: untie-ing and unlocking
[70857] dbg: auto-whitelist: DB addr list: file locked, breaking lock
[70857] dbg: locker: safe_unlock: unlink /home/elastica/.spamassassin/ 
auto-whitelist.lock
[70857] dbg: auto-whitelist: post auto-whitelist score: 14.894
[70857] dbg: rules: running body-text per-line regexp tests; score so  
far=14.894
[70857] dbg: uri: running uri tests; score so far=14.894
[70857] dbg: rules: running raw-body-text per-line regexp tests;  
score so far=14.894
[70857] dbg: rules: running full-text regexp tests; score so far=14.894
[70857] dbg: plugin:  
Mail::SpamAssassin::Plugin::AutoLearnThreshold=HASH(0x9653f40)  
implements 'autolearn_discriminator'
[70857] dbg: learn: auto-learn: currently using scoreset 3,  
recomputing score based on scoreset 1
[70857] dbg: learn: auto-learn: message score: 14.894, computed score  
for autolearn: 9.14
[70857] dbg: learn: auto-learn? ham=0.1, spam=12, body-points=0.001,  
head-points=2.822, learned-points=3.5
[70857] dbg: learn: auto-learn? no: inside auto-learn thresholds, not  
considered ham or spam
[70857] dbg: check: is spam? score=14.894 required=0.6
[70857] dbg: check:  
tests=BAYES_99,DATE_IN_FUTURE_03_06,EXTRA_MPART_TYPE,FORGED_MUA_OUTLOOK, 
HTML_40_50,HTML_MESSAGE,LONGWORDS
[70857] dbg: check:  
subtests=__ANY_OUTLOOK_MUA,__CT,__CTYPE_HAS_BOUNDARY,__CTYPE_MULTIPART_A 
LT,__FORGED_OE,__HAS_MIMEOLE,__HAS_MSGID,__HAS_MSMAIL_PRI,__HAS_OUTLOOK_ 
IN_MAILER,__HAS_RCVD,__HAS_SUBJECT,__HAS_X_MAILER,__HAS_X_PRIORITY,__LON 
GWORDS_B,__LONGWORDS_C,__MIMEOLE_MS,__MIME_BASE64,__MIME_HTML,__MIME_QP, 
__MIME_VERSION,__MSGID_OK_DIGITS,__MSGID_OK_HOST,__NEXTPART_ALL,__NEXTPA 
RT_NORMAL,__NONEMPTY_BODY,__OE_MUA,__RCVD_IN_NJABL,__RCVD_IN_SBL_XBL,__S 
ANE_MSGID,__TAG_EXISTS_BODY,__TAG_EXISTS_HEAD,__TAG_EXISTS_HTML,__TAG_EX 
ISTS_META,__TOCC_EXISTS
[70857] dbg: learn: learning spam
[70857] dbg: eval: all '*From' addrs: BeatriceCole@0451.com
[70857] dbg: eval: all '*To' addrs: christian_holler@web.de  
decoder@cyberarmy.de
[70857] dbg: dns: looking up PTR record for '80.237.161.201'
[70857] dbg: dns: PTR for '80.237.161.201': 'hq.cyberarmy.de'
[70857] dbg: received-header: parsed as [ ip=80.237.161.201  
rdns=hq.cyberarmy.de helo=hq.cyberarmy.de by=mx07.web.de ident=  
envfrom= intl=0 id=1G8VvK-0000PU-00 auth= ]
[70857] dbg: dns: looking up A records for 'mx07.web.de'
[70857] dbg: dns: A records for 'mx07.web.de': 217.72.192.144
[70857] dbg: dns: looking up A records for 'mx07.web.de'
[70857] dbg: dns: A records for 'mx07.web.de': 217.72.192.144
[70857] dbg: received-header: 'by' mx07.web.de has public IP  
217.72.192.144
[70857] dbg: received-header: relay 80.237.161.201 trusted? no  
internal? no
[70857] dbg: dns: looking up PTR record for '125.234.128.39'
[70857] dbg: dns: PTR for '125.234.128.39': 'dynamic-adsl- 
hcm.vietel.com.vn'
[70857] dbg: received-header: parsed as [ ip=125.234.128.39  
rdns=dynamic-adsl-hcm.vietel.com.vn helo=thuan-bf45dbaa6  
by=hq.cyberarmy.de ident= envfrom= intl=0 id=4E4E36574037 auth= ]
[70857] dbg: received-header: relay 125.234.128.39 trusted? no  
internal? no
[70857] dbg: metadata: X-Spam-Relays-Trusted:
[70857] dbg: metadata: X-Spam-Relays-Untrusted: [ ip=80.237.161.201  
rdns=hq.cyberarmy.de helo=hq.cyberarmy.de by=mx07.web.de ident=  
envfrom= intl=0 id=1G8VvK-0000PU-00 auth= ] [ ip=125.234.128.39  
rdns=dynamic-adsl-hcm.vietel.com.vn helo=thuan-bf45dbaa6  
by=hq.cyberarmy.de ident= envfrom= intl=0 id=4E4E36574037 auth= ]
[70857] dbg: metadata: X-Spam-Relays-Internal:
[70857] dbg: metadata: X-Spam-Relays-External: [ ip=80.237.161.201  
rdns=hq.cyberarmy.de helo=hq.cyberarmy.de by=mx07.web.de ident=  
envfrom= intl=0 id=1G8VvK-0000PU-00 auth= ] [ ip=125.234.128.39  
rdns=dynamic-adsl-hcm.vietel.com.vn helo=thuan-bf45dbaa6  
by=hq.cyberarmy.de ident= envfrom= intl=0 id=4E4E36574037 auth= ]
[70857] dbg: message: ---- MIME PARSER START ----
[70857] dbg: message: main message type: multipart/related
[70857] dbg: message: parsing multipart, got boundary: ---- 
=_NextPart_000_006A_01C6B6F9.CDE95250
[70857] dbg: message: found part of type multipart/alternative,  
boundary: ----=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: parsing multipart, got boundary: ---- 
=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: found part of type text/plain, boundary: ---- 
=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: text/plain
[70857] dbg: message: found part of type text/html, boundary: ---- 
=_NextPart_001_006B_01C6B6F9.CDE95250
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: text/html
[70857] dbg: message: added part, type: multipart/alternative
[70857] dbg: message: found part of type image/png, boundary: ---- 
=_NextPart_000_006A_01C6B6F9.CDE95250
[70857] dbg: message: parsing normal part
[70857] dbg: message: added part, type: image/png
[70857] dbg: message: ---- MIME PARSER END ----
[70857] dbg: message: decoding quoted-printable
[70857] dbg: message: decoding quoted-printable
[70857] dbg: uri: html uri found, cid:006901c6b6bf$218a7a50 
$6c822ecf@DQ72967B
[70857] dbg: uri: cleaned html uri, cid:006901c6b6bf$218a7a50 
$6c822ecf@DQ72967B
[70857] dbg: locker: safe_lock: created /home/elastica/.spamassassin/ 
bayes.lock.kermit.lizardhill.com.70857
[70857] dbg: locker: safe_lock: trying to get lock on /home/ 
elastica/.spamassassin/bayes with 0 retries
[70857] dbg: locker: safe_lock: link to /home/elastica/.spamassassin/ 
bayes.lock: link ok
[70857] dbg: bayes: tie-ing to DB file R/W /home/ 
elastica/.spamassassin/bayes_toks
[70857] dbg: bayes: tie-ing to DB file R/W /home/ 
elastica/.spamassassin/bayes_seen
[70857] dbg: bayes: found bayes db version 3
[70857] dbg: bayes:  
3d59195d20c918a1bb1e75a5a65bd041881fc4dc@sa_generated already learnt  
correctly, not learning twice
[70857] dbg: bayes: untie-ing
[70857] dbg: bayes: untie-ing db_toks
[70857] dbg: bayes: untie-ing db_seen
[70857] dbg: bayes: files locked, now unlocking lock
[70857] dbg: locker: safe_unlock: unlink /home/elastica/.spamassassin/ 
bayes.lock
$

Re: FuzzyOCR doesn't appear to be working as expected

Posted by Robert Nicholson <ro...@gmail.com>.
Ok found the problem....

It seems the samples in FuzzyOCR won't fire because of the default  
focr_autodisable_score

It might be worthwhile making a mention of that somewhere when  
performing the tests.

"These eml files are sample spam emails to test your installation of  
FuzzyOCR. As
suming you are using the default settings, the output you get should  
match the o
utput listed here."

this is not the case with SA 3.1.7 at least since the rules push the  
score over 10 for these files.

and presumably it's going to depend on the bayes database if that's  
enabled