You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Christopher X. Candreva" <ch...@westnet.com> on 2006/02/21 18:35:14 UTC
How I keep my SA rules up to date
At the risk of starting another "Why are you duplicating Rules_du_jour ?"
aregument . . . :-)
Since people say it needs to be updated, here is a little piece of perl I
use to update my scripts. I wrote it after being completely perplexed by the
rules_du_jour shell script(s).
It's a simple 30 line perl program. It takes a list of file names on STDIN,
parses them for the "# Current Home:" comment found in SARE files, and uses
LWP::Simple to mirror the file locally. I had intended to continue with
automation on this but never did, electing to perform and test my updates
manually. Anyone who wants to continue with this idea go ahead.
I have a sendbox area where my /etc/mail/spamassassin is duplicated for
testing/updating. I run:
ls 7*.cf 9*.cf | SAmirror.pl
in the sendbox. If anything is updated, I have spamassin lint my sandbox,
and if it passes use rsync to update the live files.
==========================================================
Chris Candreva -- chris@westnet.com -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/
RE: How I keep my SA rules up to date
Posted by Bret Miller <br...@wcg.org>.
> At the risk of starting another "Why are you duplicating
> Rules_du_jour ?"
> aregument . . . :-)
>
> Since people say it needs to be updated, here is a little
> piece of perl I
> use to update my scripts. I wrote it after being completely
> perplexed by the
> rules_du_jour shell script(s).
>
> It's a simple 30 line perl program. It takes a list of file
> names on STDIN,
> parses them for the "# Current Home:" comment found in SARE
> files, and uses
> LWP::Simple to mirror the file locally. I had intended to
> continue with
> automation on this but never did, electing to perform and
> test my updates
> manually. Anyone who wants to continue with this idea go ahead.
>
> I have a sendbox area where my /etc/mail/spamassassin is
> duplicated for
> testing/updating. I run:
>
> ls 7*.cf 9*.cf | SAmirror.pl
>
> in the sendbox. If anything is updated, I have spamassin lint
> my sandbox,
> and if it passes use rsync to update the live files.
Maybe something like this?
At the risk of duplicating the RulesDuJour concept, but this method
actually works on Windows where RulesDuJour would require setting up a
*nix-type environment.
On Windows, try:
dir /b 7*.cf 9*.cf | perl Samirror.pl
Bret