Great Circle Associates Majordomo-Users
(July 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: taboo headers
From: Jason L Tibbitts III <tibbs @ hpc . uh . edu>
Date: 29 Jul 1996 20:21:22 -0500
To: bh @ stargame . org
Cc: majordomo-users @ GreatCircle . COM
In-reply-to: bh@stargame.org's message of Tue, 30 Jul 1996 01:43:57 GMT
References: <31fd505a.1939272@mindspring.com>

>>>>> "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:
Indexed By Date Previous: Re: taboo headers
From: bh@stargame.org
Next: Re: Post Limit per Address per Day
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: taboo headers
From: bh@stargame.org
Next: majordomo on Windows NT
From: Hugh Messenger <hugh@cerebus.garply.com>

Google
 
Search Internet Search www.greatcircle.com