procmail
[Top] [All Lists]

Re: filter number(_at_)foobar(_dot_)com

1999-09-04 15:04:49
Christopher Zwecker wrote,

| now I got the following recipe working:

| * ^TO[1-9][0-9][0-9][0-9][0-9][0-9](_at_)good\(_dot_)domain

| that way all that doesnt comply with the 123456@ scheme gets
| bounced. Now they told me they dont want leading zeros and all numbers
| from 1 - 999999 shall be accepted. How would I do that, I mean now if
| I have an adress like 0023(_at_)(_dot_)(_dot_) it gets accepted, while only
| 23(_at_)(_dot_)(_dot_)should(_dot_)I tried around with "+" and "^" symbols 
but I dont seem to
| get it right..if one of you could give me a hint please.

Philip answered the very question a few hours ago:

  * ^TO_[1-9](((([0-9][0-9]?)?[0-9])?[0-9])?[0-9])?(_at_)good\(_dot_)domain

Well, OK, his advice would really turn out like this:

  * ^TO_[1-9]([0-9]([0-9]([0-9]([0-9][0-9]?)?)?)?)?(_at_)good\(_dot_)domain

but the two should be equivalent and I thought the former was easier to type.

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