procmail
[Top] [All Lists]

Re: Regexp fails in scoring recipe

2003-05-16 14:56:19
Dallman Ross wrote:

Dallman Ross [mailto:dman(_at_)nomotek(_dot_)com] hallucinated:

NOT_AB = "(.?|[^$WS]*([^a].|[^$WS]ab))"

* $ ^X-AB-Check:(.*\<)?$NOT_AB$

Aw, crud. That was foolish of me. ("aa$" would be wrongly defined.) Okay, Next Effort:

NOT_AB = "(.?|[^$WS]*([^a].|.[^b]|[^$WS]..))"

Is that right?  It's starting to look like yours,
Kevin. :)  But I think (hope) I'm done.

Dallman,

Yeah, that looks right. One difference is that [^a].|.[^b] has overlapping regions, whereas [^a].|a[^b] doesn't. They are identically equivalent. Maybe one is a bit more efficient for procmail to process, but that's a drop in the bucket compared to launching bogofilter with its 1 MB database or spamprobe with its 6 MB database.

Kevin



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>