spf-discuss
[Top] [All Lists]

Re: [spf-discuss] Re: RFC 4408 <draft-schlitt-spf-classic-02.txt> -- AUTH48 changes

2006-03-31 10:40:05
On Fri, 31 Mar 2006, Julian Mehnle wrote:

Matthew(_dot_)van(_dot_)Eerde(_at_)hbinc(_dot_)com wrote:
toplabel =
    ( *alphanum alpha *alphanum ) /
    ( 1*alphanum "-" *( alphanum / "-" ) alphanum )

Very good!  Does anyone DISagree that this is equivalent to the USEFOR 
definition?

I believe that translates to the following python regex:

r'([a-z0-9]*[a-z][a-z0-9]*$)|([a-z0-9]{1}-[a-z0-9-]*[a-z0-9]$)'

Which applies to some test cases gives:
abc Good
123 Fail
3D Good
1-1 Good
1--1 Good
-1 Fail
a- Fail
1 Fail

So it seems ok.

-- 
              Stuart D. Gathman <stuart(_at_)bmsi(_dot_)com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

-------
Sender Policy Framework: http://www.openspf.org/
Archives at http://archives.listbox.com/spf-discuss/current/
To unsubscribe, change your address, or temporarily deactivate your 
subscription, 
please go to 
http://v2.listbox.com/member/?listname=spf-discuss(_at_)v2(_dot_)listbox(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>