>>>>> "b" == bh <bh@stargame.org> writes:
b> I forgot to escape the dot in aol.com or on the @. That is proably what
b> the problem was.
Not escaping the dot just makes the expression more general; it must have
been the `@'. It's kind of odd, but the list of regexps you provide are
built into a piece of code that is actually executed by perl (dynamic code
generation). The problem is that the quoting rules are complicated; this
is augmented by the fact that the way you specify the regexps in
majordomo.cf (c.f. global_taboo_headers and admin_headers) is subtly
different in that you _don't_ have to escape the `@'. It's pretty
confusing.
b> from: user@aol.com (full name)
b> How would you change the regex to handle that?
You wouldn't have to. The regexp I gave you matches "from:" followed by
anything followed by "user@aol.com" followed (implicitly) by anything;
i.e. it traps if user@aol.com appears anywhere in the From: header. If I
anchored it to the end with a `$' (which you wouldn't have to escape as
long as it was at the end) then it wouldn't match, but since I didn't
there's an implicit ".*" at the end. It's tough to explain but easy to get
used to.
Perl5 comes with pretty good documentation on regexps but it isn't useful
as a tutorial; I think what's in
<URL:http://media.it.kth.se/mms/perl/start.html> might be useful for
getting up to speed.
--
Jason L. Tibbitts III - tibbs@uh.edu - 713/743-8684 - 221SR1
System Manager: University of Houston High Performance Computing Center
1994 PC800 "Kuroneko" DoD# 1723
References:
|
|