<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dominic Sayers &#187; jon postel</title>
	<atom:link href="http://blog.dominicsayers.com/tag/jon-postel/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dominicsayers.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 Aug 2010 09:12:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://blog.dominicsayers.com/?pushpress=hub'/>
		<item>
		<title>confused@rfc5322.com</title>
		<link>http://blog.dominicsayers.com/2009/02/23/confusedrfc2822com/</link>
		<comments>http://blog.dominicsayers.com/2009/02/23/confusedrfc2822com/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 13:17:35 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Email address validation]]></category>
		<category><![CDATA[Relevant to my work]]></category>
		<category><![CDATA[cal henderson]]></category>
		<category><![CDATA[ietf]]></category>
		<category><![CDATA[john klensin]]></category>
		<category><![CDATA[jon postel]]></category>
		<category><![CDATA[rfc2821]]></category>
		<category><![CDATA[rfc2822]]></category>
		<category><![CDATA[rfc3696]]></category>
		<category><![CDATA[rfc5321]]></category>
		<category><![CDATA[rfc822]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://blog.dominicsayers.com/?p=402</guid>
		<description><![CDATA[Do you think this is a valid email address?

""@example.com

No, me neither.]]></description>
			<content:encoded><![CDATA[<h4>Quick links: <a href="http://code.google.com/p/isemail/source/browse/#svn/trunk" target="_blank">Source code</a> | <a href="http://www.dominicsayers.com/isemail/" target="_blank">Email address validators head-to-head</a></h4>
<p>Do you think this is a valid email address?</p>
<blockquote><p><em>&#8220;&#8221;@example.com</em></p></blockquote>
<p>No, me neither. In one sense it clearly isn&#8217;t since there is no mailbox of that name at example.com&#8217;s mail host. Send <a href="mailto:&quot;&quot;@example.com" target="_blank">mail</a> to that address and you won&#8217;t find anybody reading it.</p>
<p>In another sense, however, it is a perfectly good email address. That is, if you believe the RFCs that define how email addresses should be constructed. Here&#8217;s the <a href="http://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form" target="_blank">BNF</a> from <a href="http://tools.ietf.org/html/rfc5322#section-3.4.1" target="_blank">RFC5322</a> for example:</p>
<pre class="newpage">addr-spec       =       local-part "@" domain</pre>
<pre class="newpage">local-part      =       dot-atom / quoted-string / obs-local-part</pre>
<pre class="newpage">quoted-string   =       [<a href="http://tools.ietf.org/html/rfc2822#ref-CFWS">CFWS</a>]
                        DQUOTE *([<a href="http://tools.ietf.org/html/rfc2822#ref-FWS">FWS</a>] qcontent) [<a href="http://tools.ietf.org/html/rfc2822#ref-FWS">FWS</a>] DQUOTE
                        [<a href="http://tools.ietf.org/html/rfc2822#ref-CFWS">CFWS</a>]</pre>
<p>Don&#8217;t worry if you can&#8217;t follow the BNF syntax &#8211; I couldn&#8217;t either until this week. Focus on the asterisk before <em>([</em><a href="http://tools.ietf.org/html/rfc2822#ref-FWS"><em>FWS</em></a><em>] qcontent)</em>. That asterisk means the contents of that bracket can occur <strong>zero</strong> or more times.</p>
<p>So tracing it through the specification:</p>
<ol>
<li>An email address is a <em>local-part</em> followed by an <em>@</em> sign followed by a <em>domain</em></li>
<li>A <em>local-part</em> can be a <em>quoted-string</em></li>
<li>A <em>quoted-string</em> is a pair of double quotes surrounding <em><strong>zero or more characters</strong></em>.</li>
</ol>
<p>&#8220;&#8221;@example.com follows these rules perfectly. And yet common sense suggests this is a preposterous address. Where should the receiving host deliver it?</p>
<p>I have had some discussions about this with <a href="http://www.iamcal.com/help/cal/" target="_blank">Cal Henderson</a> and we are somewhat at a loss. Both of us have <a href="http://www.dominicsayers.com/isemail/" target="_blank">functions that validate email addresses</a> and we cannot decide whether to follow the RFCs or common sense.</p>
<p>I could suggest the <a href="http://en.wikipedia.org/wiki/IETF" target="_blank">IETF</a> add an <a href="http://www.rfc-editor.org/" target="_blank">erratum</a> to their RFC but this format is also documented in RFC <a href="http://tools.ietf.org/html/rfc5321#section-4.1.2" target="_blank">5321</a> as well. No amount of published errata will correct the impression given by two published RFCs.</p>
<p>Perhaps we are wrong &#8211; can you think of a valid purpose for an email address of this format?</p>
<h4>Quick links: <a href="http://code.google.com/p/isemail/source/browse/#svn/trunk" target="_blank">Source code</a> | <a href="http://www.dominicsayers.com/isemail/" target="_blank">Email address validators head-to-head</a></h4>
]]></content:encoded>
			<wfw:commentRss>http://blog.dominicsayers.com/2009/02/23/confusedrfc2822com/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>
