Opened 17 years ago
Closed 17 years ago
#5976 closed defect (duplicate)
Problem with notification to internal domain names
Reported by: | Owned by: | Emmanuel Blot | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | notification | Version: | 0.10-stable |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I am using Trac for an internal project on a Windows network. Most users have only an internal e-mail address of the format <username>@mail.local
, and users login via LDAP through the AD server. In the notification section of trac.ini, I have set smtp_default_domain = mail.local
, but notifications are sent to <username>@mail.loca
.
This appears to be the offending line in notification.py
in NotifyEmail
.
addrfmt = r"[\w\d_\.\-\+=]+\@(([\w\d\-])+\.)+([\w\d]{2,4})+"
If I change the range from 2-4 to 2-5 of the final section in the expression, then notification works correctly for me, but I'm sure there should be a more general solution for formation internal domain names.
Duplicate of #4372, wihch is fixed in 0.11-dev. Thanks for the report.