On Thu, 2013-04-25 at 01:04 +0200, /me fat-fingered:

> > > header LOCAL_AS6697     X-Spam-ASN =~ / AS6697 /
> 
> The ASN plugin documentation [1] shows the AS number at the beginning of
> the header's value. The leading space prevents your header rule from
> matching,

and the RE should instead even be anchored at the beginning.

Much better.


> and should instead even anchor the RE at the beginning.

Well, yeah, it should. Would be nice. Though, it's technically not
possible for a space to anchor an RE at the beginning...

Sorry, I poorly forced two different thoughts into a single sentence
there.


>   /^AS6697 /
> 
> [1] 
> http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Plugin_ASN.html

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