You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by snowcrash+sa <sc...@gmail.com> on 2007/08/13 18:31:42 UTC
only (re)sa-compile channel files that have changed?
i use sa-update to update/maintain three separate source channels of rules,
sudo -u spam sa-update --channelfile DIST-ch.conf
sudo -u spam sa-update --channelfile SARE-ch.conf --gpgkey 856AA88A
sudo -u spam sa-update --channelfile JMAS-ch.conf --gpgkey 6C6191E3
where, fwiw,
cat DIST-ch.conf
updates.spamassassin.org
cat SARE-ch.conf
70_sare_obfu.cf.sare.sa-update.dostech.net
72_sare_redirect_post3.0.0.cf.sare.sa-update.dostech.net
70_sare_evilnum0.cf.sare.sa-update.dostech.net
70_sare_evilnum1.cf.sare.sa-update.dostech.net
70_sare_bayes_poison_nxm.cf.sare.sa-update.dostech.net
70_sare_header.cf.sare.sa-update.dostech.net
70_sare_header_eng.cf.sare.sa-update.dostech.net
99_sare_fraud_post25x.cf.sare.sa-update.dostech.net
70_sare_spoof.cf.sare.sa-update.dostech.net
...
cat JMAS-ch.conf
sought.rules.yerp.org
works great manually &/or via cron job.
i've *also* turned on,
# Rule2XSBody - speedup by compilation of ruleset to native code
loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody
in my init.pre.
currently, my sa-update cron-job script detects ANY changes to ANY of
the existing channel files, and if a change exists, RE-compiles the
whole set of rules.
as the number of channels managed grows, the odds of a *single*
channel being updated increase, as, then, does the probability that a
RE-compile will be done.
inefficient.
i (think i) can simply cobble up a script to only re-compile rules for
those channel files that HAVE been updated/changed, but though i'd ask
here first ...
*is* there an already available/clever script or process already
available that would only re-compile those rules that NEED
recompiling?
thanks!
Re: only (re)sa-compile channel files that have changed?
Posted by snowcrash+sa <sc...@gmail.com>.
> could you open an enhancement request on the bugzilla for this?
fyi: http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5594
Re: only (re)sa-compile channel files that have changed?
Posted by snowcrash+sa <sc...@gmail.com>.
> Unfortunately -- not yet. It'll take code changes to sa-compile,
> specifically to cache the "base strings" somewhere so they don't have to
> be re-extracted next time.
>
> could you open an enhancement request on the bugzilla for this?
will do.
thanks!