MailScanner snd SpamAssassin
Francis J. Lacoste
flacoste at logreport.org
Sat Oct 25 17:25:19 CEST 2003
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.
To be able to use the MyConverters::MailscannerConverter from perl
(the name is derived from the 'package' line in the perl module), you
would need to put it in a directory available to perl. Another way
to make it available would be to use the 'use lib' directive from
you 'driver' script.
So, one way to use the new mailscanner service would be to do the
following :
$ mkdir $HOME/perl5/MyConverters
$ cp MailScannerConverter.pm $HOME/perl5/MyConverters
$ cat > $HOME/.lire/converters/mailscanner_init <<EOF
use lib "$ENV{HOME}/perl5";
use MyConverters::MailScannerConverter;
return new MyConverters::MailScannerConverter();
EOF
Instead of using the 'use lib' directive, you could also put
$HOME/.lire/converters into the PERL5LIB environment variable.
After doing the above, lr_run lr_check_service -l should
list mailscanner as an available DLF converter.
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/20031025/424f6a04/attachment.bin
More information about the Questions
mailing list