Anybody know what these errors are that I'm seeing in FuzzyORC logs

René Berber r.berber at computer.org
Tue Feb 20 03:17:40 CET 2007


BB wrote:

> All of these helper programs exist -
[snip]
> The Spamassassin lint test shows this for the path -
> 
> final PATH set to:
> /sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
> 
> I wouldn't know how to test it to see if it actually works.

If you have the FuzzyOcr source, go to directory samples and run:

$ spamassassin -x -t -D FuzzyOcr < ocr-jpg.eml

lots of output, should see
...
[3340] info: FuzzyOcr: Using jpegtopnm => /usr/local/bin/jpegtopnm
...
[3340] dbg: FuzzyOcr: Starting FuzzyOcr...
...
[2724] dbg: FuzzyOcr: Exec : /usr/local/bin/jpegtopnm
/tmp/.spamassassin3340ULRQYxtmp/image001.jpg
[3340] dbg: FuzzyOcr: Saved pid: 2724
[2724] dbg: FuzzyOcr: Stdout: >/tmp/.spamassassin3340ULRQYxtmp/image001.jpg.pnm
[2724] dbg: FuzzyOcr: Stderr: >>/tmp/.spamassassin3340ULRQYxtmp/image001.jpg.err
[3340] dbg: FuzzyOcr: Elapsed [2724]: 0.358430 sec. (/usr/bin/jpegtopnm: exit 0)

except you will not see the "exit 0".

To save the error file (which may give a more detailed error message) change
your FuzzyOcr.cf, at the end uncomment:

focr_keep_bad_images 1

then look at the /tmp/<whatever>/image001.jpg.err and the other .err file
(raw.eml.error or something similar).

> Is PATH the same as LDPATH ?

No, the first is for finding executables, the second is for finding libraries
and it's not usually needed (the system has a global library path, but it
depends on the system... Linux uses ldconfig, Solaris crle, ... to configure
that path).
-- 
René Berber



More information about the MailScanner mailing list