<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Adding this back to the main thread (sorry)<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><b>From:</b> Jordyn Buchanan <br>
<b>Sent:</b> Thursday, September 14, 2017 10:51 AM<br>
<b>To:</b> M3 Sweatt <br>
<b>Cc:</b> Rubens Kuhl <br>
<b>Subject:</b> Re: [UA-discuss] Regular Expression<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I have no idea, and that's the point.&nbsp; But probably people writing the current regexps weren't anticipating EAI or even IDN TLDs generally, and when there were only a handful of gTLDs that hadn't changed since RFC 1591 was written it probably
 seemed reasonable to hard code the white list.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">So I'd rather avoid baking in assumptions about what types of addresses are likely to work in the future where the implementation is separate from the infrastructure that actually handles the delivery of mail.&nbsp; That way we don't increase
 the number of lines of code we have to touch next time we want to change the set of valid e-mail addresses.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Jordyn<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">On Thu, Sep 14, 2017 at 1:43 PM, M3 Sweatt wrote:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="mailto:jordyn@google.com" target="_blank"><span style="text-decoration:none">@Jordyn Buchanan</span></a>, thanks for the perspective.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">What do you mean that the “rules may change again”?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> ua-discuss-bounces@icann.org [mailto:ua-discuss-bounces@icann.org]
<b>On Behalf Of </b>Paul Stahura<br>
<b>Sent:</b> Thursday, September 14, 2017 10:46 AM<br>
<b>To:</b> Jordyn Buchanan &lt;jordyn@google.com&gt;<br>
<b>Cc:</b> Universal Acceptance &lt;ua-discuss@icann.org&gt;<br>
<b>Subject:</b> Re: [UA-discuss] Regular Expression<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I totally agree with Jordyn&nbsp;<o:p></o:p></p>
<div>
<p class="MsoNormal">and Mark &quot;Just capture the string and send a test message.”<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">On Sep 14, 2017, at 10:38 AM, Jordyn Buchanan via UA-discuss &lt;<a href="mailto:ua-discuss@icann.org">ua-discuss@icann.org</a>&gt; wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">Also worth remembering that &quot;works according to the universe at the moment the RegExp was written&quot; is how we got into a lot of today's UA mess in the first place.&nbsp; Just because dotless domains or some other rule is in place today, I'd want
 to avoid encoding them into a regexp that we tell people to use since the rules may change again and I don't want to have another group following along in our wake 10 years from now trying to undo the code that we told everyone to write.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">Jordyn<o:p></o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Thu, Sep 14, 2017 at 1:27 PM, Rubens Kuhl &lt;<a href="mailto:rubensk@nic.br" target="_blank">rubensk@nic.br</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal"><br>
The BiDi issue suggests to me that even enforcing the non-dotless rule is too much for a simple regex, as
<a href="mailto:shabaka.example@don">shabaka.example@don</a> is a valid Arabic EAI , while the same ASCII combination is not valid even if a .don TLD gets delegated.<br>
[non-empty]@[non-empty] looks better to me.<br>
<span style="color:#888888"><br>
<br>
<span class="hoenzb">Rubens</span></span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
&gt; Em 14 de set de 2017, à(s) 13:58:000, Don Hollander &lt;<a href="mailto:don.hollander@icann.org">don.hollander@icann.org</a>&gt; escreveu:<br>
&gt;<br>
&gt; Thanks Jim.<br>
&gt;<br>
&gt; The BiDi issue, with raw data input, is which side has the domain side.<br>
&gt;<br>
&gt; usually you’ll encounter <a href="mailto:mailbox@domainname.tld">mailbox@domainname.tld</a><br>
&gt;<br>
&gt; But in Arabic or Hebrew you’ll encounter <a href="mailto:tld.domainname@mailbox">
tld.domainname@mailbox</a><br>
&gt;<br>
&gt; Don<br>
&gt;<br>
&gt;<br>
&gt;&gt; On 15/09/2017, at 3:44 AM, Jim Hague &lt;<a href="mailto:jim@sinodun.com">jim@sinodun.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 12/09/2017 19:44, Don Hollander wrote:<br>
&gt;&gt;&gt; One RegEx has stood out as being simple and correct.&nbsp; &nbsp;I’d like the UASG<br>
&gt;&gt;&gt; to consider recommending this in our documentation.&nbsp; &nbsp;Toward that end,<br>
&gt;&gt;&gt; this thread is for discussion.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; <a href="mailto:/%5e.&#43;@(?:[%5e.]&#43;\.)&#43;(?:%5b%5e.%5d%7b2,%7d)$">/^.&#43;@(?:[^.]&#43;\.)&#43;(?:[^.]{2,})$</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regular expression check in Javascript. This accepts any Unicode<br>
&gt;&gt;&gt; characters, only insisting that the domain must have more than one label<br>
&gt;&gt;&gt; and the TLD is 2 characters or longer.<br>
&gt;&gt;<br>
&gt;&gt; Note that this in the context of an in-browser check. I only examined a<br>
&gt;&gt; small random subset of the sites surveyed in the main evaluation, and<br>
&gt;&gt; obviously without access to server code could only examine client-side<br>
&gt;&gt; operations. In all the sites I examined, the only check performed was<br>
&gt;&gt; against one (or in one case two) regular expression(s). No decomposition<br>
&gt;&gt; of the email address was attempted, and certainly no translation of the<br>
&gt;&gt; domain to Punycode.<br>
&gt;&gt;<br>
&gt;&gt; It was in that context that I highlighted the above regex, on the basis<br>
&gt;&gt; that it's probably the only sensible option to suggest to organisations<br>
&gt;&gt; as a low-impact UA improvement (I won't say fix) at the moment. If a<br>
&gt;&gt; future evaluation exercise verifies that an existing Javascript module<br>
&gt;&gt; does the right thing, that would be a better alternative, but that would<br>
&gt;&gt; involve more substantial modifications to site code.<br>
&gt;&gt;<br>
&gt;&gt; I agree that modifying it to allow 1 character TLDs would be sensible.<br>
&gt;&gt;<br>
&gt;&gt; I also agree with the page referenced at the start of the thread (which<br>
&gt;&gt; I read before working on the report) that just checking for '@' is about<br>
&gt;&gt; all one should attempt, certainly client-side.<br>
&gt;&gt;<br>
&gt;&gt; Turning again to the above regex, of course, being a proposed regex for<br>
&gt;&gt; validating email addresses, it's got an obvious deficiency. It needs to<br>
&gt;&gt; add support for other label separators (e.g. open dot).<br>
&gt;&gt;<br>
&gt;&gt; Mark Svancarek raised the excellent point of bidi in the domain.<br>
&gt;&gt; Personally I'm not confident I understand the bidi rules. But if the<br>
&gt;&gt; regex requires at least one label separator character in the domain and<br>
&gt;&gt; non-empty labels, will that work, given that if the regex allows 1<br>
&gt;&gt; character TLDs then a valid TLD is simply a non-empty label?<br>
&gt;&gt; --<br>
&gt;&gt; Jim Hague - <a href="mailto:jim@sinodun.com">jim@sinodun.com</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Never trust a computer you can't lift.<br>
&gt;<br>
&gt; Don Hollander<br>
&gt; Universal Acceptance Steering Group<br>
&gt; Skype: don_hollander<br>
&gt;<br>
&gt;<br>
&gt;<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>