On Sat, 2009-08-29 at 06:41 -0700, an anonymous Nabble user wrote: > The combo 'Portal link found' and subject could still be used, provided I > have a rule that is able to count the number of comma's in a subject. Is > there a way to do such a thing?
header __COMMA Subject =~ /,/ tflags __COMMA multiple meta __COMMA_4 __COMMA >= 4 The tflags multiple makes the rule count the number of matches, in this simple case the number of commas in the Subject. The second non-scoring sub-rule is true, if there are at least 4 of them, and can be used for your desired meta. -- char *t="\10pse\0r\0dtu...@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; }}}