On Thu, 2013-04-25 at 13:57 +0100, RW wrote:
> I was just looking at the ASM plugin and it defines tags, but not a
> metadata "pseudo-header". With other plugins, header tests run against
> that metadata header.

Doh! Spot on.

The metadata pseudo-headers are missing. Header rules can match against
these, but not against X-Spam headers, which are added at the end of the
process.

The issue of missing metadata has been fixed in revision 1056043 [1],
working on bug 5655 -- a similar issue of non-availability of the AS
data as tokens for Bayes. Both need the metadata.

The fix didn't make its way into the 3.3 branch. The patch (available
from [1]) is rather trivial, though, and easy to apply locally.


The metadata pseudo-headers are available to rules with an X- prefix.

  header ASnnnn  X-ASN =~ /^ASnnnn /


[1] http://svn.apache.org/viewvc?view=revision&revision=1056043

-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
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; }}}

Reply via email to