I was attempting to run the new sanitizer 1.40 on sparc Solaris 8, perl
5.6.1, the Solaris pkg from sunfreeware. I obtained Base64 and MD5 from
cpan, make and install them, fix up all the sanitizer stuffs (like
changing !#/usr/bin/perl to /usr/local/bin/perl in sanitizer.pl, and
Sanitizer.pm and MIMEStream.pm) and try to run it.
I kept dying just piping mail through the sanitizer.
# ./sanitizer.pl /etc/mail/sanitizer.cfg <
/export/home/alexm2/mail/saved-messages
Can't locate object method "new" via package "Digest::MD5" (perhaps you
forgot to load "Digest::MD5"?) at Anomy/Sanitizer.pm line 913.
So, I took a peek at Sanitizer.pm, line 913.
my $md5_1 = new Digest::MD5;
my $md5_2 = new Digest::MD5; $md5_2->add("Shift!");
I change to
my $md5_1 = new MD5;
my $md5_2 = new MD5; $md5_2->add("Shift!");
Now it works.
Is my perl install broke, and this hack is required to work around it,
or
was it a typo, or just one of the many idiosyncrasies of perl and
various unix flavors?
anyway, I am very happy with the sanitizer.
thanks,
alex