When is this needed in the context of a Rails app? You never want to send emails to local hosts, and emails directly on the TLD is possible, but very little will work with them in practice.
That's not entirely true, it depends on how your mailing infrastructure is set up.
That doesn't mean you have to support their use. I have never seen a company support an email ending in a period and the world seems to continue along.
Are e-mail addresses case-sensitive? I would always lowercase&trim a string meant to represent an e-mail address (or a domain name) before doing anything else with it.
1. https://en.wikipedia.org/wiki/Email_address#Internationaliza...
Email addresses aren't case insensitive in nature, but many commercial mail services (and misguided developers) assume they are.
Or, you know, if you actually want to use an at sign in the manner allowed by the RFCs. That's the point of standards: if something is allowed, then … it is allowed.
Refusing to accept behaviour permitted by the standard is just broken.
By hearsay alone, I say: comments and quoted strings in email addresses are, de facto, more or less dead. Comments especially, which were intended just as a compatibility measure for stuff from over forty years ago (when this was being developed organically, before there was any real spec). Most software whose direct business is email (that is, MUAs and MTAs) will more or less support them for historical reasons, but newer MUAs are likely not to support them in full (again especially comments), and I suspect the considerable majority of other software that deals in email addresses won’t support one or both of them. (This is a deviation from spec in the direction of restriction.)