On Sat, Dec 23, 2006 at 05:34:10PM -0500, Richard Ball wrote:
On 23-12-2006 16:23, Geoff Soper wrote:
I'm trying to match mails sent to 1234567(_at_)domain(_dot_)tld where the
username is a 7 digit number. According to the procmail man
page I can use egrep style regex patterns and on the egrep man
page it is detailed how to use {n} to match a pattern n times
Procmail's egrep doesn't have that idiom.
In other words:
:0
* ^To:(.*\<)?[0-9][0-9][0-9][0-9][0-9][0-9][0-9]@
action
Or:
SEVENNUMS = [0-9][0-9][0-9][0-9][0-9][0-9][0-9]
:0
* $ ^To:(.*\<)?$SEVENNUMS@
action
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail