Ticket #5789 (closed defect: duplicate)
Trac's notification.py doesn't properly handle some email addresses
| Reported by: | anonymous | Owned by: | eblot |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | notification | Version: | 0.10.4 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I'm using trac on my lan and I have internal email addresses of the form user@…
In notification.py, addrfmt is used to extract the email address:
addrfmt = r"[\w\d_\.\-\+=]+\@(([\w\d\-])+\.)+([\w\d]{2,4})+"
and this regex expects to find a 2-to-4 \w\d ending, it won't match local, but only "loca".
This is why in my case, trac will try to send notification emails to user@…
The quickest hack in my case is to change the 4 to 5 :).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


