On Sat, 2011-04-23 at 17:49 +0100, Niamh Holding wrote: > KB> Other than the tool being broken, it is of course entirely possible you > KB> simply typo'ed either the RE or the Relay pseudo-header -- a newline > KB> easily would have done that. > > Cut'n'paste from locals.cf and the relevant header from an email in > each case.
Exactly. Line breaks love to sneak in during copy-n-paste of long lines. :) Besides, X-Spam-Relays-* are pseudo-headers, not part of the email unless you specifically add_header them. > KB> Perl. > > Doesn't give me a text box to enter the text to test and another one > to enter the regex being tested with an output showing the match or > that there is no match. Don't think "text box", think "file" or "variable" instead. If you keep on searching for a GUI tool, keep in mind you want one with the tasty PCRE flavor of regex, not a cheap imitation with additives. -- 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; }}}