{"action":"created","issue":{"url":"https://api.github.com/repos/dim/rfc-822/issues/4","labels_url":"https://api.github.com/repos/dim/rfc-822/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/dim/rfc-822/issues/4/comments","events_url":"https://api.github.com/repos/dim/rfc-822/issues/4/events","html_url":"https://github.com/dim/rfc-822/issues/4","id":114559989,"number":4,"title":"\"foo@bar.\" marked as valid email address","user":{"login":"Joyez","id":6609753,"avatar_url":"https://avatars.githubusercontent.com/u/6609753?v=3","gravatar_id":"","url":"https://api.github.com/users/Joyez","html_url":"https://github.com/Joyez","followers_url":"https://api.github.com/users/Joyez/followers","following_url":"https://api.github.com/users/Joyez/following{/other_user}","gists_url":"https://api.github.com/users/Joyez/gists{/gist_id}","starred_url":"https://api.github.com/users/Joyez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joyez/subscriptions","organizations_url":"https://api.github.com/users/Joyez/orgs","repos_url":"https://api.github.com/users/Joyez/repos","events_url":"https://api.github.com/users/Joyez/events{/privacy}","received_events_url":"https://api.github.com/users/Joyez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T09:45:38Z","updated_at":"2015-11-02T12:52:39Z","closed_at":null,"body":"`foo@bar.` is marked as a valid email address.\r\n\r\nBut the specification tells us that: Neither part of the address may end with a dot.\r\n\r\n```ruby\r\n\"foo@bar.\" =~ RFC822::EMAIL ? \"Valid\" : \"Invalid\"\r\n=> Valid\r\n```\r\n\r\nShould by invalid."},"comment":{"url":"https://api.github.com/repos/dim/rfc-822/issues/comments/153008844","html_url":"https://github.com/dim/rfc-822/issues/4#issuecomment-153008844","issue_url":"https://api.github.com/repos/dim/rfc-822/issues/4","id":153008844,"user":{"login":"Joyez","id":6609753,"avatar_url":"https://avatars.githubusercontent.com/u/6609753?v=3","gravatar_id":"","url":"https://api.github.com/users/Joyez","html_url":"https://github.com/Joyez","followers_url":"https://api.github.com/users/Joyez/followers","following_url":"https://api.github.com/users/Joyez/following{/other_user}","gists_url":"https://api.github.com/users/Joyez/gists{/gist_id}","starred_url":"https://api.github.com/users/Joyez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joyez/subscriptions","organizations_url":"https://api.github.com/users/Joyez/orgs","repos_url":"https://api.github.com/users/Joyez/repos","events_url":"https://api.github.com/users/Joyez/events{/privacy}","received_events_url":"https://api.github.com/users/Joyez/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T12:52:39Z","updated_at":"2015-11-02T12:52:39Z","body":"I understand the debates,\r\nbut in the section 6.1. of the RFC-822 (https://tools.ietf.org/html/rfc822#section-6.1).\r\nThe domain part must be formatted as :\r\n```\r\ndomain      =  sub-domain *(\".\" sub-domain)\r\nsub-domain  =  domain-ref / domain-literal\r\ndomain-ref  =  atom           \r\n```\r\nwhere an atom is formatted as (https://tools.ietf.org/html/rfc822#section-3.3) :\r\n```\r\nspecials    =  \"(\" / \")\" / \"<\" / \">\" / \"@\"  ; Must be in quoted-\r\n            /  \",\" / \";\" / \":\" / \"\\\" / <\">  ;  string, to use\r\n            /  \".\" / \"[\" / \"]\"              ;  within a word.\r\natom        =  1*<any CHAR except specials, SPACE and CTLs>\r\n```\r\nAlso, there is nothing in the RFC-822 that tells that the domain part of an email address should follow the FQDN format. A FQDN may be acceptable for an email address, but not in this RFC-822.\r\n\r\nRegards,"}}