﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17483	EmailField : valid email address	vadimov@…	nobody	"There is an error in regexp ""email_re"" allocated here
https://code.djangoproject.com/browser/django/trunk/django/core/validators.py#L161

According to this regexp e-mail address in form ipv4 address (SMTP 4.1.3) e.g. user_name@123.123.123.12 is not matched.

Correct regexp :

{{{
email_re = re.compile(
    r""(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*""  # dot-atom
    r'|^""([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*""' # quoted-string
    r')@(((?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+[A-Z]{2,6}\.?$)'  # domain
    r'|(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$)', re.IGNORECASE)  # literal form, ipv4 address (SMTP 4.1.3)

}}}
"	Bug	closed	Core (Mail)	1.3	Normal	invalid			Unreviewed	0	0	0	0	0	0
