wiki:SmtpDefaultDomainPatch

Version 2 (modified by tlast, 8 years ago) (diff)

--

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

[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.

Author/Contributors

Author: tlast
Contributors: