Opened 3 years ago

Last modified 4 months ago

#11637 new enhancement

Resolver that uses username as email address

Reported by: Greg Warnes Owned by:
Priority: normal Component: AnnouncerPlugin
Severity: normal Keywords: email, resolver
Cc: Trac Release:


This simple patch adds an additional resolver for the case when the username is the user's email address:

Index: announcer/
--- announcer/      (revision 13781)
+++ announcer/      (working copy)
@@ -102,3 +102,10 @@
         specified = self.setting.get_user_setting(req.session.sid)[1] or ''
         data = dict(specified_xmpp = specified,)
         return "prefs_announcer_xmppaddress.html", data
+class UsernameEmailResolver(Component):
+    """ This resolver uses the username as the email address """
+    implements(IAnnouncementAddressResolver)
+    def get_address_for_name(self, name, authenticated):
+        return name

Attachments (0)

Change History (1)

comment:1 Changed 4 months ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.