procmail
[Top] [All Lists]

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

1997-02-22 02:04:18
Return-Path: procmail-request(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE 
Return-Path: procmail-request(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Received: from Informatik.RWTH-Aachen.DE (uucp(_at_)localhost) by 
antares.starshine.org (8.8.3/8.7.3) with UUCP id UAA14505 for 
jimd(_at_)starshine(_dot_)org; Fri, 21 Feb 1997 20:08:09 -0800
Received: from campino.Informatik.RWTH-Aachen.DE by hustle.rahul.net with 
SMTP id AA08600
  (5.67b8/IDA-1.5 for <jimd(_at_)starshine(_dot_)org>); Fri, 21 Feb 1997 
19:42:00 -0800
Received: (from lists(_at_)localhost) by Campino.Informatik.RWTH-Aachen.DE 
(RBI-Z-5/8.6.12) id EAA27386; Sat, 22 Feb 1997 04:42:28 +0100 (MET)
Resent-Date: Sat, 22 Feb 1997 04:42:28 +0100 (MET)
X-Authentication-Warning: campino.informatik.rwth-aachen.de: lists set sender 
to procmail-request(_at_)informatik(_dot_)rwth-aachen(_dot_)de using -f
Date: Fri, 21 Feb 1997 19:36:41 -0800
From: John Gianni <jjg(_at_)Cadence(_dot_)COM>
Message-Id: <199702220336(_dot_)TAA08446(_at_)cds9200(_dot_)Cadence(_dot_)COM>
To: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: RFC-consistent regexp to match name@(subdomain.)*foo.bar
Cc: dmuth(_at_)ot(_dot_)com, ruck(_at_)cnd(_dot_)edu
Resent-Message-Id: <"Ls8hUC.A.KqG.3nmDz"@campino>
Resent-From: procmail(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE
X-Mailing-List: <procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de> 
archive/latest/9722
X-Loop: procmail(_at_)informatik(_dot_)rwth-aachen(_dot_)de
Precedence: list
Resent-Sender: procmail-request(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE

MY QUESTION IS: 
What is the purpose of the backslash-slash in the line
   * ^Subject: send-ls-list \/[a-z0-9_.-]+@([a-z0-9-]+\.)*com$
---
  There is no slash in the subject line of the incoming message, tested by:
  UNIX> mail -s "send-ls-listing 
anyone(_at_)anydomain(_dot_)anything(_dot_)com" jjg < /dev/null
---
  Presumably, the backslash escapes the slash, but, then, what is the 
  purpose of that slash?
---
This backslash-slash combination is shown in one of the procmailex manpage 
examples, but, I don't see an explanation of what the purpose of the 
backslash-slash combination is in that manpage example, or in other procmail
manpage (although I may have missed it).
------
I don't see what the backslash-slash is doing in that condition? Do you?

Thanks,
John Gianni

        It is the "fencepost operator" that is specific to 
        procmail.  Everything after that on the line is 
        assigned as a value to the $MATCH variable.


--
Jim Dennis,                                
info(_at_)mail(_dot_)starshine(_dot_)org
Proprietor,                          
consulting(_at_)mail(_dot_)starshine(_dot_)org
Starshine Technical Services              http://www.starshine.org