The general idea here is to automatically perform the sa-compile step so that the compiled regexes can be kept up-to-date as I upgrade spamassassin. Ideally, this would be a step done prior to actually installing, so that it could install as part of the ebuild, of course. It would also then uncomment the line loadplugin Mail::SpamAssassin::Plugin::Rule2XSBody in $ROOT/etc/spamassassin/v320.pre so as to enable the functionality. Reproducible: Always
Ok, uhm, for which package is this supposed to be? Please describe the problem(s) in a way that someone who isn't you has a chance of understanding it :)
ENOCAFFEINE Sorry about that.
The file you are referencing says it will not be overwritten during future SpamAssassin installs, why not just edit it yourself?
Maybe I'm being unclear. The sa-compile step is a post-install step that is optional. If you do this, then you're also supposed to uncomment the line I referred to earlier. This absolutely is an optional step. However, the problem is that if a new regex is added to SpamAssassin, then the library created by an earlier install could be out of date compared to the regexes, and thus not getting the full protection of the new version until I happened to run sa-compile again (which is likely to be forgotten). If, however, I could perform the sa-compile step as part of the installation of mail-filter/spamassassin, given the USE flag is enabled, then I could know that whatever new regexes that are added would be compiled, or any outdated regexes would no longer be in the library. And, should I ever stop needing the services of spamassassin, an "emerge -C spamassassin" would clear out this library, too. The updating of the config file is merely the enabling of the feature that sa-compile makes available, to make it a complete feature.
take in note that 3rd patty rule sets is maybe also old rules to remove ? :) if its planned to work on update spamassassin its complicated, here i do sa-compile each night not just when installing/updateing spamassassin versions
I don't see the point.