Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6394 closed defect (duplicate)

internal mail server with Mac OS X

Reported by: jasminlapalme@… 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)

Change History (1)

comment:1 by Emmanuel Blot, 17 years ago

Resolution: duplicate
Status: newclosed

See #4372 (duplicate, already fixed)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Emmanuel Blot to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.