MailScanner snd SpamAssassin

Francis J. Lacoste flacoste at logreport.org
Tue Oct 28 03:21:20 CET 2003


Hi Wytze,

Your solution is pretty clever! I didn't notice your changes (I 
don't usually pay much attention to the first and last lines of a
perl module). It looked like a perl module which was done like
the other ones found in the Lire tree, so I thought "hey, this won't
work". But I was wrong :-)

Thanks for the insights! 

On Mon, 2003-10-27 at 02:52, Wytze van der Raay wrote:
> > 
> > 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,

Francis J. Lacoste

-- 
Francis J. Lacoste              . .           http://www.logreport.org
/^LogReport$/               . .               flacoste at logreport.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.logreport.org/pipermail/questions/attachments/20031027/782c34e8/attachment.bin 


More information about the Questions mailing list