= 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 [report:9?COMPONENT=SmtpDefaultDomainPatch here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=SmtpDefaultDomainPatch&owner=tlast new ticket]. == Download == Download the zipped source from [download:smtpdefaultdomainpatch here]. == Source == You can check out SmtpDefaultDomainPatch from [http://trac-hacks.org/svn/smtpdefaultdomainpatch here] using Subversion, or [source:smtpdefaultdomainpatch 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 == [[ChangeLog(smtpdefaultdomainpatch, 3)]] == Author/Contributors == '''Author:''' [wiki:tlast] [[BR]] '''Contributors:'''