johnkyle4 / php-email-address-validation

Automatically exported from code.google.com/p/php-email-address-validation
0 stars 0 forks source link

Not accepting "+" in check_local_portion #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Test an email address like "me+variation@domain.com"

What is the expected output? What do you see instead?

It should be valid.  However it's not.

BACKGROUND, from Wikipedia article http://en.wikipedia.org/wiki/E-mail_address :

Sub-addressing
Some mail services allow a user to append a +tag qualifier to their e-mail 
address (e.g., 
joeuser+tag@example.com). The text of tag can be used to apply filtering. The 
text of the tag 
can also be used to help a user figure out which organization "leaked" the 
user's email address 
to a spammer. [5] [6] [7] However, some mail servers violate RFC 5322, and the 
recommendations in RFC 3696, by refusing to send mail addressed to a user on 
another system 
merely because the local-part of the address contains the plus sign (+). Users 
of these systems 
cannot use plus addressing. On the other hand, most installations of the qmail 
and Courier Mail 
Server products support the use of a hyphen '-' as a separator within the 
local-part, such as 
joeuser-tag@example.com or joeuser-tag-sub-anything-else@example.com. This 
allows qmail 
through .qmail-default or .qmail-tag-sub-anything-else files to sort, filter, 
forward, or run an 
application based on the tagging system established. Disposable e-mail 
addresses of this form, 
using various separators between the base name and the tag are supported by 
several email 
services, including Runbox (plus and hyphen), Google Mail (plus)[8], Yahoo! 
Mail Plus (hyphen)[9], 
and FastMail (plus)[10]. The name sub-addressing is the generic term (used for 
plus-addressing 
and hyphen-addressing) found in some IETF standards-track documents, such as 
RFC 5233.

Original issue reported on code.google.com by dan94...@gmail.com on 23 Nov 2009 at 6:36

GoogleCodeExporter commented 9 years ago
SORRY - close this as invalid please.  Somehow my test case was wrong.  
Everything is fine. Nothing to see here, 
move along....

Original comment by dan94...@gmail.com on 23 Nov 2009 at 6:40

GoogleCodeExporter commented 9 years ago
Works correctly. Courier Mailserver also uses + for subaddressing. It is 
correctly validated, do not see point.

Original comment by witold.b...@gmail.com on 30 Jun 2010 at 1:37

GoogleCodeExporter commented 9 years ago
Closed as invalid, as requested.

Original comment by d...@addedbytes.com on 18 Aug 2011 at 1:24