procmail
[Top] [All Lists]

Re: regex syntax question

2004-03-01 11:49:29
Toen ik Curtis Maurand kietelde, kwam er dit uit:

given the following domain name: erx54843rx.com

If I've understood the docs correctly, I should be able to catch this
with: erx[0-9]{1,5}rx\.com

So the rule would read:

 :0 B:
 * erx[0-9]{1,5}rx\.com
 junkmail

No, procmail doesn't support the {n,m} way.


Maybe this is good enough?
  :0 B:
  * erx[0-9]+rx\.com
  junkmail

Or this:
  :0 B:
  * erx[0-9]([0-9]([0-9]([0-9][0-9]?)?)?)?rx\.com
  junkmail

Or this:
  D    = "[0-9]"
  D1_5 = "$D($D($D($D$D?)?)?)?"
  :0 B:
  *$ (^|[^a-z0-9.-]erx${D1_5}rx\.com(^a-z0-9.-]|^)
  junkmail


Do you really want to check exclusively the Body-part of the message?

-- 
Affijn, Ruud

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