On Thu, 2008-10-16 at 17:10 -0400, Kris Deugau wrote: > Yes, that works fine. What doesn't work is where the "score RULE (adj)" > entry is in a channel ruleset, and the original rule is in a different > channel or the stock ruleset. > > At least, as of last time I tried that was the case. And it still seems > to be: > > config: SpamAssassin failed to parse line, "FORGED_MUA_OUTLOOK (-1)" is > not valid for "score", skipping: score FORGED_MUA_OUTLOOK (-1) > channel: lint check of update failed, channel failed
Unlike regular score lines for non-existent rules (which are kind of ignored), the relative score adjustment depends on the rule to be defined before. Given your demo rule above, you are distributing a custom channel. It will work, if you rename the channel name to come after the stock updates channel when sorting lexically. guenther > (Even though exactly the same line in local.cf lints just fine, and in > fact if I copy the particular file that rule is in to SA's system config > directory, that *also* lints fine.) -- char *t="[EMAIL PROTECTED]"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}