Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3392 closed defect (duplicate)

Email notification uses username instead email setting

Reported by: cbarber@… Owned by: Jonas Borgström
Priority: low Milestone:
Component: general Version: 0.9.5
Severity: normal Keywords: notification email
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

We're currently using apache with mod_auth_kerb - http://modauthkerb.sourceforge.net/. Unlike mod_auth_sspi, you can not disable including the domain name in the REMOTE_USER variable. So we authenticate against subversion and trac as login@….

A small quirk occurs when enabling email notification. Although, users configure their email address in Settings, their username still takes priority. Our internal domain name does match our domain used for our email, so nothing is sent out.

I found the small change in Notify.py that does what seems intuitive; setting email overrides the username as an email address. Here's the diff (just swapping the conditions):

--- Notify_1.py	Wed Jul 12 21:03:17 2006
+++ Notify_2.py	Wed Jul 12 12:26:59 2006
@@ -300,10 +300,10 @@
         # now convert recipients into email addresses where necessary
         emails = []
         for recipient in recipients:
-            if recipient.find('@') >= 0:
-                emails.append(recipient)
-            elif self.email_map.has_key(recipient):
+            if self.email_map.has_key(recipient):
                 emails.append(self.email_map[recipient])
+            elif recipient.find('@') >= 0:
+                emails.append(recipient)
 
         # Remove duplicates
         result = []

Regards, Craig Barber

Attachments (0)

Change History (4)

comment:1 by Emmanuel Blot, 18 years ago

Keywords: notification email added

comment:2 by Emmanuel Blot, 18 years ago

Resolution: duplicate
Status: newclosed

Actually, this is a duplicate of #2766, which already provides a similar patch.

comment:3 by cbarber@…, 18 years ago

Sorry I didn't find it when I google'd. Thanks!

comment:4 by Matthew Good, 18 years ago

If you've been using the user@DOMAIN for a while now you may not want to switch, but when I switched from mod_auth_ldap to mod_auth_kerb I hacked it so it doesn't append the domain since all my Trac and SVN permissions already used the username without the DOMAIN.

There's a patch on their SF tracker which provides an option to do that: http://sourceforge.net/tracker/index.php?func=detail&aid=1373783&group_id=51775&atid=464526

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström 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.