1
najmead
Email address validation
  • 2006/4/28 11:20

  • najmead

  • Just popping in

  • Posts: 5

  • Since: 2006/3/24


A user on my site reported the following incident:

Quote:

site incorrectly identifies addresses with a "+" character as an invalid email address during the registration process.

while "+" characters have no special meaning in themselves, many mail systems handle them specially, as an extension to the part of the address before the "+" - e.g. "cas+gc@example.com" would be delivered to the same account as "cas@example.com" (but with the full plussed address left intact so that filtering software like procmail can save it to a separate folder or whatever). in this context, they're known as "plussed addresses".

some mail systems use a "-" character for the same job, but "+" is more common (and more "correct" by internet convention/habit/practice)


it's actually inexcusable for any software to do a bad job of address validation - the precise definition for a valid email address has been publicly documented for decades, and it has hardly changed at all even since the early days in the 1970s. it's not rocket-science, it's really straight-forward...and it's not even neccessary to "roll your own", there are dozens of freely re-usable functions, libraries, and code-snippets to do address validation that all do the job (as well as probably hundreds more that do the job badly).

it's even more inexcusable for GPL software like XOOPS to get it wrong - there are no license incompatibilities preventing use of one of the GPL libraries that do it.

2
bluenova
Re: Email address validation

hmmm, that could really cause a problem. POP3 will also identify a + as an @ so u could end up with an address of cas@gc@example.com with certain applications.

3
Dave_L
Re: Email address validation
  • 2006/4/28 12:43

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Quote:
POP3 will also identify a + as an @ so u could end up with an address of cas@gc@example.com with certain applications.


I don't think that's true. I've been using "+" in my email addresses for years with POP3 and haven't had any problems, other than with overly restrictive syntax checkers such as in XOOPS.

4
bluenova
Re: Email address validation

yea, I think it might just be my host, quote:
If your e-mail client has trouble using a @ sign in the login, you can use +, :, or % sign instead.

5
scoobster
Re: Email address validation
  • 2006/4/28 13:23

  • scoobster

  • Just popping in

  • Posts: 28

  • Since: 2005/2/5 1


najmead, it should be fairly simple to change the email validation if you're really bothered by this.

Personally I don't think its a big issue, however if you want to keep ALL of your users happy then why not.

Login

Who's Online

145 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits