wiki:SmtpDefaultDomainPatch

SMTPDefaultDomain

Description

This plugin adds the ability to use the smtp_default_domain option to Trac version 0.9.6.

Edit the Notify.py and find (around line 86, in __init__):

            if email:
                self.email_map[username] = email

Add these lines:

        # If no email, append default_domain to username
            else:
                self.domain = self.config.get('notification', 'smtp_default_domain')
                self.email_map[username] = username + '@' + self.domain

Bugs/Feature Requests

Existing bugs and feature requests for SmtpDefaultDomainPatch are here.

If you have any issues, create a new ticket.

defect

1 / 1

Download

Download the zipped source from here.

Source

You can check out SmtpDefaultDomainPatch from here using Subversion, or browse the source with Trac.

Example

Add the following line to the notification section in your trac.ini file:

[notification]
smtp_default_domain = example.com

Note: Do not use the @ symbol.

All logins that contain only the username, as if you're using LDAP usernames to log in with, will then have valid email addresses. If the user adds in an email address, it will supersede the default-ing.

Recent Changes

5683 by tlast on 2009-05-07 15:22:42
update with google file
5682 by tlast on 2009-05-07 14:55:24
remove unnecessary docs
5106 by tlast on 2009-01-08 13:12:25
Updated version.
(more)

Author/Contributors

Author: tlast
Maintainer: tlast
Contributors:

Last modified 8 months ago Last modified on Nov 9, 2015, 5:35:49 PM