At 10:23 AM Tuesday, 1/23/2007, René Berber wrote -=>
Ed Kasky wrote:

> With FuzzyOcr 3.5.1 and SA 3.1.7, I noticed this in the log while
> debugging my setup:
>
> 2007-01-23 01:39:23 [16842] Processing Message with ID
> "<[EMAIL PROTECTED]>" ("Lacy Silva"
> <[EMAIL PROTECTED]> -> "ed" <[EMAIL PROTECTED]>)
> 2007-01-23 01:39:23 [16842] GIF: [248x442] submersible.gif (5458)
> 2007-01-23 01:39:23 [16842] Found: 1 images
> 2007-01-23 01:39:23 [16842] Found GIF header name="submersible.gif"
> 2007-01-23 01:39:23 [16842] Image is single non-interlaced...
> 2007-01-23 01:39:24 [16842] Calculating image hash for:
> /tmp/.spamassassin168423O9h2Ttmp/submersible.gif.pnm
> 2007-01-23 01:39:24 [16842] Timed out

Look at the timestamp, there was no 10 sec timeout, it was immediate.

I know - that caught my attention right away.

> 2007-01-23 01:39:24 [16842] Error calculating the image hash, skipping
> hash check...
> 2007-01-23 01:39:24 [16842] Empty Hash, skipping...
>
> Timeout is set to default of 10 seconds and the hash.db is writeable by
> spamd.
>
> -rw-rw-r--    1 spamd    spamd       90112 Jan 23 06:19
> /etc/mail/spamassassin/FuzzyOcr.db

The date and size indicates that it has been used very recently.

The date and size changed I think because I restarted spamd at that time this morning after checking the cf. 4 1/2 hours later it's still the same.

> From the cf:
> focr_enable_image_hashing 2
> focr_db_hash /etc/mail/spamassassin/FuzzyOcr.db
> focr_db_safe /etc/mail/spamassassin/FuzzyOcr.safe.db
>
> The rest of the hash settings are left as default.
>
> As a result, I have had no hits since installing the new version.

When did you install the new version?

About 2 weeks ago.

For what period of time there are no hits?  Do you know how many times the
plugin was called?

I haven't had any hits since installing. Since Sunday when the log was rotated, there are 1241 instances in the FuzzyOcr log, 404 scans and 837 cancels due to score being above/below thresholds.


> Any suggestions as to where to look next are gratefully accepted and
> appreciated...

There is a global timeout, usually disabled but looks like you uncommented the 1
sec sample value.

# Timeout for the plugin, in seconds. (Maximum runtime of the plugin)
# Default value: 10
focr_timeout 20

# Use a global timeout value instead of per helper application.
# Default value: 0
#focr_global_timeout 1

Still scratching my head on the timeouts and hash db errors...

Ed Kasky
~~~~~~~~~
Randomly Generated Quote (431 of 526):
Scriptures, n. The sacred books of our holy religion, as distinguished
from the false and profane writings on which all other faiths are based.
-Ambrose Bierce, writer (1842-1914) [The Devil's Dictionary]

Reply via email to