ending the spam.assassin.prefs.conf madness.

Rick Cooper rcooper at DWFORD.COM
Tue Nov 22 12:00:21 GMT 2005


> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> Behalf Of Julian Field
> Sent: Tuesday, November 22, 2005 5:16 AM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: ending the spam.assassin.prefs.conf madness.
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
>
> Please accept my sincere apologies for anything I said yesterday. My
> only excuse is that I was awaiting some very important information
> from my consultant. In the end it didn't go the way I would have
> preferred. So I was more than a little edgy.
> My apologies again.
>
[...]

Julian, this code works :

#!/usr/bin/perl
use Mail::SpamAssassin ;
my $test = Mail::SpamAssassin->new();
my $siterules = $test->{site_rules_filename};
$siterules ||= $test->first_existing_path
(@Mail::SpamAssassin::site_rules_path);
print "Site Rules Path : $siterules\n";

Rick


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list