Edgewall Software

Ticket #1931: notify.patch

File notify.patch, 704 bytes (added by anonymous, 7 years ago)

Add a default domain suffix for the ticket notification system.

  • trac/Notify.py

    diff -r -u --exclude=.svn --exclude='*.pyc' branches/trac-0.9.pre-trunk/trac/Notify.py trunk/trac/Notify.py
    old new  
    309309                emails.append(recipient) 
    310310            elif self.email_map.has_key(recipient): 
    311311                emails.append(self.email_map[recipient]) 
     312            elif self.config.get("notification", "default_domain"): 
     313                emails.append("%s@%s" % ( 
     314                        recipient,  
     315                        self.config.get("notification", "default_domain"))) 
    312316 
    313317        # Remove duplicates 
    314318        result = []