ending the spam.assassin.prefs.conf madness.

Julian Field MailScanner at ecs.soton.ac.uk
Tue Nov 22 14:58:15 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----


On 22 Nov 2005, at 12:00, Rick Cooper wrote:
>
> 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";

Presumably, as I need a directory, I don't want to do the  
site_rules_filename bit. So I end up with just

use Mail::SpamAssassin;
$a = new Mail::SpamAssassin;
print "site rules is \"";
print $a->first_existing_path (@Mail::SpamAssassin::site_rules_path);
print "\"\n";

If I create a mailscanner.cf in there, and put everything from  
spam.assassin.prefs.conf in it, and just softlink that mailscanner.cf  
and spam.assassin.prefs.conf, then does this do the Right Thing(TM)?

So people expecting to find spam.assassin.prefs.conf will still have  
it, but the real file will be in mailscanner.cf in the  
site_rules_path directory.

When they upgrade by RPM, what should I do? Once they have the  
mailscanner.cf in place, it's easy. It's the first upgrade to the new  
structure that I have to handle carefully. Any ideas?

Is *everyone* happy with this? If not, what would be better and why?

- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2425)

iQEVAwUBQ4MyCfw32o+k+q+hAQF2WQf+NRv/LZ8dfcFazXNgCBAXD/+CI1lAFu+8
w0xwGB2qDx4S6X90aCD04fMktxHVhsm8Hf1R28+rVTsVeruIJDHaJ4EYiQG91vGM
j9YWfgDjppEw09rJyt+VkYAcej594yVTiZD4NzNRpdmhiOR2TNCMbDG6rHIZWMG9
MO6xCytqdMFLjU9MT1Sz8as+gNXcaZvlgsbJEMduZ251Owe4EQFqqXSkR/IgOVZg
/j6hXdvuWSuEkSiHq4bVYPQMSes8rIQCVEauaKhy4V9y4ucr9EAfgmqfl7HBNiAk
CMR7VeDffuYOXw5rciw7cZfjBrhvxAPujEfeIQe7rBwI30Ct2V8QSw==
=fHlY
-----END PGP SIGNATURE-----

-- 
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