Modify ↓
Opened 18 years ago
Closed 18 years ago
#6394 closed defect (duplicate)
internal mail server with Mac OS X
| Reported by: | Owned by: | Emmanuel Blot | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | notification | Version: | devel |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
I'm using Trac on Mac OS X and an internal mail server on Mac OS X Server. Our internal mail addresses are looking like that "username@…". Trac detects that this kind of mail addresses are incorrect, but it is not the case. I did make a modification in notification.py to accept these kind of addresses. Here it is :
--- trac/notification.py (révision 6210)
+++ trac/notification.py (copie de travail)
@@ -167,7 +167,7 @@
def __init__(self, env):
Notify.__init__(self, env)
- addrfmt = r'[\w\d_\.\-\+=]+\@(?:(?:[\w\d\-])+\.)+(?:[\w\d]{2,4})'
+ addrfmt = r'[\w\d_\.\-\+=]+\@(?:(?:[\w\d\-])+\.)+(?:[\w\d]+)'
admit_domains = self.env.config.get('notification', 'admit_domains')
if admit_domains:
pos = addrfmt.find('@')
Is it ok?
Attachments (0)
Note:
See TracTickets
for help on using tickets.



See #4372 (duplicate, already fixed)