[Mimedefang] Mimedefang with Anomy and SpamAssassin

Nels Lindquist nlindq at maei.ca
Fri Feb 1 20:10:24 EST 2002


On 1 Feb 2002 at 11:42, Rich West wrote:

> Also, just as an FYI, when SpamAssassin was installed and I turned on 
> the use of spamassassin from within MimeDefang, I got the following error:
> Feb  1 10:30:28 enigma mimedefang[18337]: [ID 946266 mail.debug] Perl 
> stderr: Ca
> n't locate object method "new" via package 
> "Mail::SpamAssassin::MyMailAudit" (pe
> rhaps you forgot to load "Mail::SpamAssassin::MyMailAudit"?) at 
> /opt/local/bin/m
> imedefang.pl line 2051.
> 
> I added Mail::SpamAssassin::MyMailAudit to the list of modules within 
> mimedefang.pl to make it look like:
> ...
> use Digest::SHA1;
> use Mail::SpamAssassin;
> use Mail::SpamAssassin::MyMailAudit;
> use Anomy::HTMLCleaner;

Are you using SpamAssassin 1.5, or 2.0?  The default installation of 
SpamAssassin 2.0 replaces the use of ::MyMailAudit with 
::NoMailAudit, which is purportedly more efficient, etc. than 
::MyMailAudit (which is just a subclass of Mail::Audit).

According discussions I've been involved with on the SA mailing list, 
the NoMailAudit library doesn't (yet) replicate the data constructor 
which MIMEDefang depends on in order to interface with SA properly.

Specifically including Mail::SpamAssassin::MyMailAudit as you've done 
allows 'Fang to work fine with version 2.0.  Presumably ::NoMailAudit 
will eventually be updated so that it will work, too.
----
Nels Lindquist <*>
Information Systems Manager
Morningstar Air Express Inc.




More information about the MIMEDefang mailing list