SMTPDefaultDomain

Description

Adds the ability to use the smtp_default_domain option to 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.

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 your notification section in your trac.ini.

Do not use the @ symbol.

[notification]
smtp_default_domain = example.com

All logins that contain only the username (like 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 supercede the default-ing.

Recent Changes

[1673] by tlast on 12/12/06 10:17:17

New hack SmtpDefaultDomainPatch, created by tlast

Author/Contributors

Author: tlast
Contributors: