http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5594
Summary: only (re)sa-compile channel files that have changed
Product: Spamassassin
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: sa-compile
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
> 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?
>
From: Justin Mason
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.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.