#4372 closed defect (fixed)
[PATCH] Sending of notification fails using .local top level domain
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | notification | Version: | 0.10.2 |
Severity: | minor | Keywords: | |
Cc: | pzn@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Having recently updated our Trac 0.9 installation to 0.10, we found the e-mail notification to be broken. As it turns out, 0.10 validates all e-mail addresses and our address (mailinglist@…) did not validate. Reason: .local is longer than 4 characters.
The attached patch fixes this issue and allows the entire domain to contain a maximum of 255 characters as per RFC 2821. Not only is this standard compliant, it is also usual for company intranets like our own to have longer domain names. In fact, all Windows SBS installations come with .local as default top level domain.
Attachments (1)
Change History (6)
by , 18 years ago
Attachment: | maximum_domain_length.patch added |
---|
comment:1 by , 18 years ago
Keywords: | notification added |
---|
Actually, the regular expression is far from being fully valid, see comment:ticket:3212:2.
I'm not sure about the best way to handle this issue.
comment:2 by , 18 years ago
Component: | general → notification |
---|---|
Milestone: | → 0.12 |
Owner: | changed from | to
Severity: | normal → minor |
Not sure either about the "perfect" solution, but the patch looks useful.
comment:3 by , 18 years ago
Status: | new → assigned |
---|
There is some confusion about the proposed patch:
- A FQDN should be 255 character long, max. The proposed patch would allow a 255 char long label, where RFC1035 states that it should be 63 char long or less.
comment:4 by , 18 years ago
Keywords: | notification removed |
---|---|
Milestone: | 0.12 → 0.11 |
Resolution: | → fixed |
Status: | assigned → closed |
Alternative proposition implemented in [5516]
Add the following option to your trac.ini
file:
[notification] admit_domains = local
For the duplicate issue as submitted in comment:ticket:3212:15, the option would look like
[notification] admit_domains = localhost, hostname.localdomain, mail.vztech
comment:5 by , 18 years ago
Cc: | added |
---|
Patch trac/notification.py to validate domains with a maximum of 255 characters