At 13:18 2003-03-20 -0800, Tom Most wrote:
I am trying to filter email addresses which are sent to a domain in the
format of 1-20 lower case or numeric characters, a dot, one or two
numeric characters, then ending with @domain.tld. The regular
expressions with which I am familiar would dictate that the filter would
look like:
As per 'man procmailrc', procmail supports standard regexp, and a certain
set of extended regular expressions (detailed in that file).
* ^TO_[a-z0-9-]{1,20}+(\.[0-9-]{1,2}+)@domain\.tld
# D necessary for case sensitivity. note that domain.tld will be matched
# as lower case.
:0D
*
^TO_[a-z0-9][a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?[a-z0-9]?\(_dot_)[0-9][0-9]?(_at_)domain\(_dot_)tld
However, this does not seem to work. Any ideas of the source of the
problem?
Dunno, have you checked the manpage for the regexp operators you're trying
to use?
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail