How can I check for duplicate email addresses in PHP, with the possibility of Gmail's automated labeler and punctuation in mind?
For example, I want these addressed to be detected as duplicates:
username@gmail.com
user.name@gmail.com
username+label@gmail.com
user.name+label@gmail.com
Despite what Daniel A. White claims: In Gmail, dots at random places before the '@' (and label) can be placed as much as you like. user.name@gmail.com and username@gmail.com are in fact the same user.
I have extended Zend Validator like this.
Email with more than one "dot" symbol in gmail address are considered invalid. For some cases this is not logical solution, but that works for me.