[Trac-tickets] [The Trac Project] #3212: notification email check
too strict
The Trac Project
noreply at edgewall.com
Fri Jun 2 03:56:16 CDT 2006
#3212: notification email check too strict
-----------------------------------------------------+----------------------
Reporter: Dinko Korunic <dinko.korunic at gmail.com> | Owner: jonas
Type: defect | Status: new
Priority: low | Milestone:
Component: ticket system | Version: 0.9.5
Severity: normal | Keywords:
-----------------------------------------------------+----------------------
Email checks in notification.py are '''too strict'''. For instance '+' and
'=' delimiters can be used in '''username''' part of RFC822 address but
they are not allowed - see the code:
File notification.py, revision 3356, line 138:
{{{
addrfmt = r"[\w\d_\.\-]+\@(([\w\d\-])+\.)+([\w\d]{2,4})+"
}}}
I'd suggest adding '+' and '=', as well as allowing \% as
username/hostname delimiter too. And there is possibility of someone using
user%host at host2 addresses too (think relaying).
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/3212>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list