procmail
[Top] [All Lists]

Re: RFC-consistent regexp to match name@(subdomain.)*foo.bar

1997-02-20 19:57:09
robp(_at_)electriciti(_dot_)com (Rob Perelman) writes:
...
I am not new to regexs, but I am new to procmail, so I must ask if the
regex is case sensitive or not.  If it is not, you are fine.  If it is,
you will probably want to catch uppercase in addresses since I have seen
maybe people set up their mail programs as such.  Also, I would allow for
spaces at the end of the Subject: line just in case.  Otherwise, it looks
good...

procmail regexps are case-insensitive by default, changable on a
per-recipe basis using the 'D' flag, as described at the bottom of
the second page of the procmailrc(5) manpage.

As for the spaces, I would agree, and suggest that the '$' be left off the
end of the regexp so as to not force an end of line match.

Philip Guenther