Red Hat Bugzilla – Bug 124870
spamd: -a no longer exists
Last modified: 2007-11-30 17:10:43 EST
The -a option to spamd no longer exists and should be removed from
spamassassin.sysconfig. See /var/log/messages when (re)starting
# -a and --auto-whitelist options were removed from 3.0.0
# prevent service startup failure
perl -p -i -e 's/ -a//' /etc/sysconfig/spamassassin
perl -p -i -e 's/ --auto-whitelist//' /etc/sysconfig/spamassassin
I added this to %post in CVS last night, but rebuild failed due to a
build system problem. Would you consider this to be acceptable?
Ah, ok, apparently I was working with an older version
I guess the above would work for 95% cases. It would fail in the case
of bundled options though, like " -dac", and would actually break the
config in some cases (eg. " -adc"). Coming up with regexps that would
work for all cases might get butt-ugly, like replacing the first one
with something like (still not perfect):
's/(["\s]-\w+)a/$1/ ; s/(["\s]-)a(\w+)/$1$2/ ; s/(["\s])-a\b/$1/'
But anyway the "-a" should be removed from the "vanilla"
spamassassin.sysconfig as distributed with the 3.0 rpm unless already
checked in... still waiting on build system