<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for La rolls des blogs &raquo; La rolls des blogs</title>
	<atom:link href="http://my.rails-royce.org/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://my.rails-royce.org</link>
	<description>Another Ruby and Rails blog</description>
	<lastBuildDate>Fri, 20 Jan 2012 18:14:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Hallelujah</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-227</link>
		<dc:creator>Hallelujah</dc:creator>
		<pubDate>Fri, 20 Jan 2012 18:14:18 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-227</guid>
		<description>Yes it is valid even if it does not exist yet.

See new ICANN gTLDs</description>
		<content:encoded><![CDATA[<p>Yes it is valid even if it does not exist yet.</p>
<p>See new ICANN gTLDs</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Himesh</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-226</link>
		<dc:creator>Himesh</dc:creator>
		<pubDate>Fri, 20 Jan 2012 13:14:39 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-226</guid>
		<description>This email is getting validated:
cool_123@gmail.commmm
cool_123@gmail.commmm.sahb</description>
		<content:encoded><![CDATA[<p>This email is getting validated:<br />
<a href="mailto:cool_123@gmail.commmm">cool_123@gmail.commmm</a><br />
<a href="mailto:cool_123@gmail.commmm.sahb">cool_123@gmail.commmm.sahb</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Email Validator for Rails 3 Without Regex &#124; Rob Conery</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-147</link>
		<dc:creator>Email Validator for Rails 3 Without Regex &#124; Rob Conery</dc:creator>
		<pubDate>Thu, 10 Nov 2011 22:18:30 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-147</guid>
		<description>[...] read about this over here but thought I&#8217;d add it here as I want to make sure I remember it. Works like a [...]</description>
		<content:encoded><![CDATA[<p>[...] read about this over here but thought I&#8217;d add it here as I want to make sure I remember it. Works like a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Hallelujah</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-143</link>
		<dc:creator>Hallelujah</dc:creator>
		<pubDate>Thu, 10 Nov 2011 18:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-143</guid>
		<description>I know that. Many gems use what I found : email_validator, validate_email etc ...
But who cares !!! It is opensource and I am happy with it !! (a quote or a WWR vote may help me :) )</description>
		<content:encoded><![CDATA[<p>I know that. Many gems use what I found : email_validator, validate_email etc &#8230;<br />
But who cares !!! It is opensource and I am happy with it !! (a quote or a WWR vote may help me <img src='http://my.rails-royce.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Paco Guzmán</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-135</link>
		<dc:creator>Paco Guzmán</dc:creator>
		<pubDate>Wed, 09 Nov 2011 13:41:30 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-135</guid>
		<description>I was using this for a while

https://github.com/cesario/activevalidators/blob/master/lib/active_model/validations/email_validator.rb</description>
		<content:encoded><![CDATA[<p>I was using this for a while</p>
<p><a href="https://github.com/cesario/activevalidators/blob/master/lib/active_model/validations/email_validator.rb" rel="nofollow">https://github.com/cesario/activevalidators/blob/master/lib/active_model/validations/email_validator.rb</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Hallelujah</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-134</link>
		<dc:creator>Hallelujah</dc:creator>
		<pubDate>Tue, 08 Nov 2011 17:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-134</guid>
		<description>Thanks you all for your feedbacks !!

It seems that since this post has become quiet popular so we should create a project in github.


@jose I don&#039;t know yet if I will patch the mail gem but it is a good Idea

The first step is maybe a gem (for backward compatibility) then pull request a patch to Mail gem.

If you want to follow the project status here is the github repository :

https://github.com/hallelujah/valid_email</description>
		<content:encoded><![CDATA[<p>Thanks you all for your feedbacks !!</p>
<p>It seems that since this post has become quiet popular so we should create a project in github.</p>
<p>@jose I don&#8217;t know yet if I will patch the mail gem but it is a good Idea</p>
<p>The first step is maybe a gem (for backward compatibility) then pull request a patch to Mail gem.</p>
<p>If you want to follow the project status here is the github repository :</p>
<p><a href="https://github.com/hallelujah/valid_email" rel="nofollow">https://github.com/hallelujah/valid_email</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by José Valim</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-133</link>
		<dc:creator>José Valim</dc:creator>
		<pubDate>Tue, 08 Nov 2011 15:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-133</guid>
		<description>Nice! Have you considered providing a patch to the Mail gem that adds a valid? method to Mail::Address? This way, we could just use the valid? method instead of explicitly checking the dots or worrying about Treetop details.</description>
		<content:encoded><![CDATA[<p>Nice! Have you considered providing a patch to the Mail gem that adds a valid? method to Mail::Address? This way, we could just use the valid? method instead of explicitly checking the dots or worrying about Treetop details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by James Ferguson</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-132</link>
		<dc:creator>James Ferguson</dc:creator>
		<pubDate>Fri, 04 Nov 2011 00:17:38 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-132</guid>
		<description>This validator seems to allow multiple email addresses:

p = Person.new
p.name = &quot;Test&quot;
p.email = &quot;test@example.com, test2@example.com&quot;
p.valid? # =&gt; true

Is that intended?</description>
		<content:encoded><![CDATA[<p>This validator seems to allow multiple email addresses:</p>
<p>p = Person.new<br />
p.name = &#8220;Test&#8221;<br />
p.email = &#8220;test@example.com, <a href="mailto:test2@example.com">test2@example.com</a>&#8221;<br />
p.valid? # =&gt; true</p>
<p>Is that intended?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Hallelujah</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-123</link>
		<dc:creator>Hallelujah</dc:creator>
		<pubDate>Sat, 03 Sep 2011 23:58:39 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-123</guid>
		<description>&lt;blockquote cite=&quot;#commentbody-116&quot;&gt;
&lt;strong&gt;&lt;a href=&quot;#comment-116&quot; rel=&quot;nofollow&quot;&gt;haxney&lt;/a&gt; :&lt;/strong&gt;
          &lt;p&gt;This method seems to fail for valid email addresses like&lt;/p&gt;
&lt;p&gt;    “name” &lt;/p&gt;
&lt;p&gt;Also, treetop.domain doesn’t exist in my version of Ruby (1.9.2p290), and it seems like this would suffice (sorry, I don’t know how to input code to WordPress):&lt;/p&gt;
&lt;p&gt;def is_valid_email?(e)&lt;br&gt;
  m = Mail::Address.new(e)&lt;br&gt;
  m.domain &amp;&amp; m.address&lt;br&gt;
  rescue Mail::Field::ParseError =&gt; e&lt;br&gt;
    false&lt;br&gt;
end&lt;/p&gt;
&lt;p&gt;This method also has the advantage of returning the “addressy” part of the address (name plus domain), with any comments stripped.&lt;/p&gt;
         &lt;/blockquote&gt;

Yep but a validation don’t need to return anything else than true or false.

This piece of code was originally intended to rails application
If you want some more features , it might be useful to create a gem upon

Anyway for the most use cases, we do not type such rfc valid email like below in a text field (as in a signup form)

“John Doe &lt;john@doe.com&gt;”
This email is valid and the mail gem can extract the user and domain part but iMHO this is not the purpose</description>
		<content:encoded><![CDATA[<blockquote cite="#commentbody-116"><p>
<strong><a href="#comment-116" rel="nofollow">haxney</a> :</strong></p>
<p>This method seems to fail for valid email addresses like</p>
<p>    “name” </p>
<p>Also, treetop.domain doesn’t exist in my version of Ruby (1.9.2p290), and it seems like this would suffice (sorry, I don’t know how to input code to WordPress):</p>
<p>def is_valid_email?(e)<br />
  m = Mail::Address.new(e)<br />
  m.domain &amp;&amp; m.address<br />
  rescue Mail::Field::ParseError =&gt; e<br />
    false<br />
end</p>
<p>This method also has the advantage of returning the “addressy” part of the address (name plus domain), with any comments stripped.</p>
</blockquote>
<p>Yep but a validation don’t need to return anything else than true or false.</p>
<p>This piece of code was originally intended to rails application<br />
If you want some more features , it might be useful to create a gem upon</p>
<p>Anyway for the most use cases, we do not type such rfc valid email like below in a text field (as in a signup form)</p>
<p>“John Doe <john @doe.com>”<br />
This email is valid and the mail gem can extract the user and domain part but iMHO this is not the purpose</john></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Email validation in Ruby On Rails 3 or Active model without regexp by Hallelujah</title>
		<link>http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/comment-page-1/#comment-121</link>
		<dc:creator>Hallelujah</dc:creator>
		<pubDate>Fri, 02 Sep 2011 12:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://my.rails-royce.org/?p=186#comment-121</guid>
		<description>As many want to make it a gem, it seems to be a good idea.
However I wonder how consistent it will be in a future since it relies on the &quot;tree&quot; private method</description>
		<content:encoded><![CDATA[<p>As many want to make it a gem, it seems to be a good idea.<br />
However I wonder how consistent it will be in a future since it relies on the &#8220;tree&#8221; private method</p>
]]></content:encoded>
	</item>
</channel>
</rss>

