ending the spam.assassin.prefs.conf madness.

Alex Neuman van der Hans alex at NKPANAMA.COM
Tue Nov 22 23:07:19 GMT 2005


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

I consider spamassassin and all the other tools prerequisites, so I tend 
to install it *before* mailscanner.

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


On 22 Nov 2005, at 15:16, Rick Cooper wrote:

>> -----Original Message-----
>> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
>> Behalf Of Julian Field
>> Sent: Tuesday, November 22, 2005 9:58 AM
>> To: MAILSCANNER at JISCMAIL.AC.UK
>> Subject: Re: ending the spam.assassin.prefs.conf madness.
>>
>>
>> -----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)?
>>
>
> Why not just ln -f -s /MailScannerPath/etc/spamassassin.prefs.conf
> site_rules_path/mailscanner.cf?

So all I need to do is add a link to spam.assassin.prefs.conf in
site_rules_path/mailscanner.cf ?

This sounds like this whole entire problem could be solved with 1
soft link.

Is that really all I need to do?

>> 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?
>>
>
> Wouldn't the above handle this also? At the very least the rpm install
> scripts could add the link. Or When MailScanner loads it could look  
> for a
> soft link at site_rules_path/mailscanner.cf and create it then.

It would be easy for the rpm install script to run a short Perl
script which output the pathname where the soft-link has to go. I
would rather not do it at run-time, it is very difficult to not do it
if you need to not do it for some reason.

The only problem left is that people normally install MailScanner
before installing SpamAssassin. Which package should it go into? I
suspect the answer is both. Should be easy enough.

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

iQEVAwUBQ4M/nvw32o+k+q+hAQGvqQf/XXTt1QrZqHrBObfwZ2DFg6m3d+f55ozt
hkWlL8M/reQ3oy2OXjtBzxPYyC1L4bRRRdUeItKr930RchfRjC/iuezPFp91ZB4j
by7DS2FoTHh3JPzKr8xqZtLYccrO2eD9j9Z93DMutSfFoLlguBkLBtbD5mFTObZq
rTzPezziPebfH4DnmsK3n+hlIeSL3mdqFhCQdyo5eMEk/agLb+CFXK43PKz2/Aar
WXEYG0AjBhXWHbrE56W0cqmYrWYrtGHTI1CPwtdOOVGWX2B5be6GjepP79N0bnwa
1Ltn2XqeQqXob8N1A4ICjGSsvBpoAzCUaA9/bB41MblWiTSuGaWa/Q==
=zC0b
-----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!

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