Ticket #3212 (closed defect: fixed)
notification email check too strict
| Reported by: | Dinko Korunic <dinko.korunic@…> | Owned by: | eblot |
|---|---|---|---|
| Priority: | low | Milestone: | 0.11 |
| Component: | ticket system | Version: | devel |
| Severity: | normal | Keywords: | notification review |
| Cc: | david.l.jones@…, pzn@…, nielsen@… |
Description
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@host2 addresses too (think relaying).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


