On Sun, 2013-04-07 at 21:44 -0600, Bob Proulx wrote:

[ Bunch of good advise snipped. ]

>   :0
>   * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
>   devnull/
> 
> Since procmail uses Extended Regular Expressions there is one more
> optimization I would make.  I wouldn't list out every star.  It gets
> hard to count.  Is there ten there?  Or nine?  Or eleven?  Quick,
> without counting, how many?  See that is hard.  But you can use the
> normal extended regular expression syntax to simply list the number.
> 
>   :0
>   * ^X-Spam-Level: \*{10}
>   devnull/

Unfortunately, no. While procmail implements some flavor of "extended"
Regular Expressions, there are still quite some differences to other
regex engines, like egrep's or PCRE. Most notably, the repetition
operator {n} or {n,m} is not supported by procmail.


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