Reginaldo O. Andrade wrote:
Hi, list!
I'm developing a custom cf file to block messages with specific
strings and I would like to know if is it possible to score an entire
file with the same value without using the command "score RULE_NAME
X.XX" for each rule in the archive.
Thanks in advance.
Reginaldo O. Andrade
Network Administrator
One way to get the desired effect would be to do something like:
perl -ne 'next if /(^#)|(^describe)|(^score)|(^$)/; @a = split; print
"score\t$a[1] 5.00\n";' somefile.cf >> local.cf
where "somefile.cf" is the rule file. Replace my sample score of 5.00
with your desired score, and local.cf with your actual local.cf file
location.
(actually, for your case, a temp file might be in order, then paste back
into your file).
--Rich