About RIPE | Contact  | Search | Sitemap    
Homepage RIPE  
RIPE Community Mail Archives
search  
     
RIPE Navigation Ends
About RIPE Maillists
Maillists Archive
Global Lists
Non Active Lists
RIPE NCC Navigation Ends
Next Section
<<< Chronological >>> Author Index    Subject Index <<< Threads >>>

Re: some problem in syntax.pl

  • To: Hwang Hyojung < >
  • From: Steven Bakker < >
  • Date: Mon, 20 Oct 1997 12:05:58 +0100
  • Comments: Mental Floss prevents Moral Decay.

>>>>> On Sat, 18 Oct 1997, "HH" == Hwang Hyojung wrote:

  HH> why do you eval check ? Isn't this necessary ? Rather, I think,
  HH> $regex is checked if it is valid email address.  How do you think
  HH> about it ? If it is necessary, please explain why this is needed .
  HH> Thanks in advance !!

Please read RIPE-157, section 2.3.3., Authorization Schemes (shouldn't that
be "Authorisation", Ambrose? :-).  There is a section labeled, `The
"MAIL-FROM" scheme:', which explains that the MAIL-FROM value in the
"mntner" object is treated as a regular expression, against which From:-
headers will be matched.

So, yes the "eval" is necessary to make sure people submit a valid regex in 
their "mntner" objects.

While we are on the subject, RIPE-157 mentions that the regex should 
comply to the rules in "POSIX 1003.2 section 2.8."  Not having read that 
document, I wonder if the POSIX syntax and Perl are identical.  
"syntax.pl" checks whether the regex is Perl-compliant.  For example, does
'(abc)' mean "the literal string '(abc)'", or (a-la Perl), "the subpattern 
'abc'"?

Cheers,
Steven





  • Post To The List:
<<< Chronological >>> Author    Subject <<< Threads >>>
 

Next Section
     About RIPE | Site Map | LIR Portal | About the RIPE NCC | Contact | © RIPE Community. All rights reserved.
RIPE.NET Homepage LIR Portal RIPE Community