GNOME Bugzilla – Bug 663374
Contacts-Email id accepts improper formats
Last modified: 2011-11-04 16:57:29 UTC
1. Open Evolution 2. Click on “New->Contact” 3. Enter details in the Email id field EXPECTED OUTCOME: Email id field should check for validation (@ and .com/.org/.in etc. eg: someone@example.com ) ACTUAL OUTCOME: Email id field accepts doesn’t check for validation (@ and .com/.org/.in etc. eg: someone@example.com ) USER IMPACT: Unable to make out email id entered
duplicate of bug 513438
As written in bug 513438, even "foo@localhost" is a valid address, without a dot in there. I don't see any reason for overengineering by implementing this. *** This bug has been marked as a duplicate of bug 513438 ***
A standalone EMailAddressEntry widget would be useful, even if it just checks for a '@' character and sets a boolean "valid" property. We could reuse it in the account editor and other places, and have one place to tweak the "what's a valid address" policy.
See guenther's comment in bug 513438 comment 17: "Btw, user@localhost (hint, no dot) is a bloody valid email address. As can even be the plain 'user', without any host part."
Fine, but the point is email addresses do have a grammar to them and it would be useful to have a reusable text entry widget that validates the text against the grammar. Probably best just hand it to Camel and let it decide.