spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hardin <jhar...@impsec.org>
Subject Re: FuzzyOCR
Date Thu, 07 Jul 2011 15:18:25 GMT
On Thu, 7 Jul 2011, polloxx wrote:

> On Wed, Jul 6, 2011 at 6:33 PM, John Hardin <jhardin@impsec.org> wrote:
>>
>> OK. Just to be clear, you took a jpeg-format image file and used jpegtopnm
>> to convert it to a pnm file, and got a correct .pnm image file out? Did you
>> do this to verify the exit code from jpegtopnm:
>>
>>    echo $?
>
> $ /usr/bin/jpegtopnm ./spam1.jpg > spam1.pnm
> jpegtopnm: WRITING PPM FILE
>
> spam1.pnm is created.

Please run this:

      /usr/bin/jpegtopnm ./spam1.jpg > spam1.pnm ; echo $?

The return code is likely zero, but let's be _sure_.

>> It would be useful to see the debugging output of spamassassin where it's
>> talking about fuzzyocr. Do you know how to run spamassassin in debug mode
>> against a test message?
>
> # spamassassin --debug FuzzyOCR < ./spam1.jpg > /dev/null

Your input there needs to be a complete email message with the image as an 
attachment, not the image itself:

> Jul  7 13:46:25.509 [4590] dbg: FuzzyOcr: Starting FuzzyOcr...
> Jul  7 13:46:25.509 [4590] info: FuzzyOcr: Processing Message with ID "<no messageid>"
(<no sender> -> <no receipients>)
> Jul  7 13:46:25.509 [4590] dbg: FuzzyOcr: Skipping OCR, no image files found...

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   Activist: Someone who gets involved.
   Unregistered Lobbyist: Someone who gets involved with something
     the MSM doesn't approve of.                           -- WizardPC
-----------------------------------------------------------------------
  Today: Robert Heinlein's 104th birthday
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message