-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill Landry wrote:
> ----- Original Message ----- From: "Spamassassin List"
> <[EMAIL PROTECTED]>
> To: <users@spamassassin.apache.org>
> Sent: Wednesday, August 09, 2006 2:26 PM
> Subject: Re: Improved OCR Plugin with approximate matching
>
>>> Spamassassin List wrote:
>>>>>> decoder wrote:
>>>>>>
>>>>>> See http://wiki.apache.org/spamassassin/FuzzyOcrPlugin
>>>>>>
>>>>>> Major changes: Replaced imagemagick with netpbm, support png,
>>>>>> invoked giffix for broken gifs, detect image format with magic
>>>>>> bytes and not by content-type, added various configuration
>>>>>> options.
>>>>
>>>> I install the above plugin, and i keep getting the same error.
>>>>
>>>> [EMAIL PROTECTED] spamtest]# spamassassin -t < spam-gif-1.txt sh:
>>>> /usr/bin/giffix: No such file or directory giftopnm: error reading
>>>> magic number (null): Error reading magic number from Netpbm image
>>>> stream.  Most often, this means your input file is empty. sh:
>>>> /usr/bin/giffix: No such file or directory giftopnm: error reading
>>>> magic number (null): Error reading magic number from Netpbm image
>>>> stream.  Most often, this means your input file is empty. sh:
>>>> /usr/bin/giffix: No such file or directory giftopnm: error reading
>>>> magic number (null): Error reading magic number from Netpbm image
>>>> stream.  Most often, this means your input file is empty.
>>>>
>>>> I notice the error occur when the attachment is gif format.
>>>>
>>>
>>> You are missing a tool. It is called "giffix" and part of the
>>> "giflib"
>>> package. Without it, the plugin can't fix broken gifs to analyze
>>> them.
>>> Install giflib.
>>>
>>
>> I did a yum install giflib, but it install another package. What is
>> the package for yum?
>>
>> libungif                i386       4.1.3-3.fc4.2  
>> updates-released   39 k
>
> Check that the path is correct to giffix.  I had to change the
> following line in the FuzzyOcr.pm from:
>
> open OCR, "|/usr/bin/convert - pnm:-|/usr//bin/gocr -i - >
> /tmp/spamassassin.focr.$$";
>
>    to
>
> open OCR, "|/usr/local/bin/convert - pnm:-|/usr/local/bin/gocr -i -
> > /tmp/spamassassin.focr.$$";
>
> Chris, you may want to consider adding an editable path statement to
> the top of the plug-in file rather than using hard coded paths that
> do not match everyone elses file locations.
>
> Bill
>

Noted for the next release :)

Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE2v1mJQIKXnJyDxURAop5AKCtgjoQXj4jFk6noej1f2NcXymM+QCeO/8y
sqYeeaVYdHi1JGHD/CYwQF0=
=TOE2
-----END PGP SIGNATURE-----

Reply via email to