Interesting. I'll look into this and fix in the next release. Would you
open a bug on sourceforge for this?

Cheers,
vipul 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lionel
Bouton
Sent: Friday, August 06, 2004 7:44 AM
To: [EMAIL PROTECTED]
Cc: Administrateurs IES
Subject: [Razor-users] razor-agents bug ?

Hi,

I discovered today that we had a problem here with spamassassin 2.63 and
2.64 using razor-agents 2.61 :

Aug  6 16:28:05 ns02 spamd[26947]: razor2 check skipped: No such file or
directory Can't locate auto/Digest/SHA1/reset.al in @INC (@INC contains:

lib ../lib /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Razor2/Signature/
Whiplash.pm
line 66

This didn't occur on each message processing. Sometimes spamd could
process the message without razor-agents complaining.

After looking into Digest::SHA1 and Whiplash.pm I noticed that
Whiplash.pm called reset on a Digest::SHA1 object although it just
called the hexdigest method which already resets the object upon
completion.
It seems calling reset after digest or hexdigest is not only a waste of
time, but also the source of the problem.

After commenting out the reset in Whiplash.pm (line 66) :

        my $sha1 = Digest::SHA1->new();
        $sha1->add($host);
        $sig = substr $sha1->hexdigest, 0, 12;

->      #$sha1 = Digest::SHA1->reset();
        $sha1->add($corrected_length);
        $sig .= substr $sha1->hexdigest, 0, 4;

        push @sigs, $sig;
        $sig_meta{$sig} = [$host, $corrected_length];

everything is working fine here.

As I didn't found anything related to this, I post the problem and what
I hope is the correct solution here,

Best regards,

--
Lionel Bouton - inet6
---------------------------------------------------------------------
   o              Siege social: 51, rue de Verdun - 92158 Suresnes
  /      _ __ _   Acces Bureaux: 33 rue Benoit Malon - 92150 Suresnes
 / /\  /_  / /_   France
 \/  \/_  / /_/   Tel. +33 (0) 1 41 44 85 36
  Inetsys S.A.    Fax  +33 (0) 1 46 97 20 10
 



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Razor-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/razor-users

Reply via email to