[Mimedefang] RE: Mimedefang 2.64 can't find SpamAssassin
Simon Standley
si at yacc.co.uk
Fri Mar 7 11:39:35 EST 2008
I might have solved this one myself.
Info for those in a similar position ....
I wasn't quite right about the sample filter - I was using an old version & install kit gave me a .rpmnew version. Didn't notice that ~:(
Main difference between the two was introduction of detect_and_load_perl_modules().
Newer example worked fine. Working detect_and_load_perl_modules() into my old and trusted filter got mine working too.
There you go. Simple really.
Then searched back for detect_and_load_perl_modules in the archives, and guess what I found:
2005-02-14 David F. Skoll <dfs at roaringpenguin.com>
* mimedefang.pl: We don't detect and load Perl modules until
the detect_and_load_perl_modules() function is called.
*** NOTE INCOMPATIBILITY ***
You *MUST* call detect_and_load_perl_modules() inside your filter
before you can rely on the %Features hash being set correctly,
and before you can rely on SpamAssassin being loaded!!!
Guess I've just been lucky all these years :)
> -----Original Message-----
> From: Simon Standley
> Sent: 07 March 2008 14:10
> To: 'mimedefang at lists.roaringpenguin.com'
> Subject: Mimedefang 2.64 can't find SpamAssassin
>
> Guys,
>
> I'm installing a new machine.
>
> Fedora 8 O/S
> Mimedefang 2.64 as it comes with Fedora 8
> Spamassassin 3.2.4, as it comes with Fedora 8
>
> The same old mimedefang-filter I've been using quite happily with mimedefang 2.62, but that's kind of irrelevant, since problem also happens with 'sample' filter.
>
> Problem is, $Features{"SpamAssassin"} is being set to '0' in mimedefang.pl, so mimedefang ignores spamassassin.
>
> If I build a small stand-alone perl script that just does:
>
>
> if (!defined($Features{"SpamAssassin"})) {
> (eval 'use Mail::SpamAssassin (); $Features{"SpamAssassin"} = 1;')
> or $Features{"SpamAssassin"} = 0;
> }
>
> print "Its ",$Features{"SpamAssassin"};
>
>
> $Features{"SpamAssassin"} is set to '1'.
>
> On machine that works and new one, Spamassassin is in the same place:
>
> /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin
>
> Can anyone tell me what I've done wrong?
>
> Thanks
>
> Si.
>
>
>
More information about the MIMEDefang
mailing list