MailScanner snd SpamAssassin
Wytze van der Raay
wytze at nlnet.nl
Mon Oct 27 08:52:37 CET 2003
Francis J. Lacoste wrote:
> On Tue, 2003-10-21 at 04:22, Wytze van der Raay wrote:
>
>>You can play with the converter by putting MailScannerConverter.pm in a
>>directory .lire/converters in your home directory and then trying:
>
> Actually it is a little more complicated than this. What you need
> to put in $HOME/.lire/converters is a little perl script which
> will be evaluated by Lire and that should return an instance
> of the MailScannerConverter class.
Perhaps good perl style demands that it should be done that way (I am
not really familiar with perl OO programing), and the Lire manual
explains it that way.
But it certainly works in the way I described it, and makes adding a
user-written converter somewhat easier I think, by requiring just one
extra file rather than two with a special kind of linkage between those two.
Note that the required instance of the MailScannerConverter class is
created by the last few code lines in my example script:
...
# Initialization required for the Lire DLF Converter framework
##use MyConverters::MailScannerConverter;
MyConverters::MailScannerConverter->new();
__END__
The "use ..." line was commented out since it is obviously not needed in
this context (where the package implementation immediately precedes the
instantiation).
Kind regards,
Wytze van der Raay
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list