On Sat, 2011-04-23 at 18:49 +0100, Niamh Holding wrote:
> KB> Besides, X-Spam-Relays-* are pseudo-headers, not part of the
> KB> email unless you specifically add_header them.
> 
> I guess I must have done that to get them into every email :)

Oh, you really got that from the mail's headers? Yeah, then your site
config should have some lines along

  add_header all  Relays-Untrusted  _RELAYSUNTRUSTED_

and its variations. Adding them always probably is just wasting headers,
though. It's perfectly fine to enable it temporarily while chasing some
issues, or just generate it on demand when debugging or developing rules
like the one in your OP. You do not need to add_header them, to have the
rules working -- these pseudo-headers are always available to rules as
metadata, without effectively duplicating each and every Received
header.

To get these pseudo-headers on demand for rule development or debugging
your trustpath, just feed a sample through 'spamassassin -D' and grep
the STDERR output for the headers.


-- 
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