Edgewall Software

Ticket #6078: multiple_email_notifications.diff

File multiple_email_notifications.diff, 974 bytes (added by christophe.sauthier@…, 5 years ago)
  • notification.py

     
    336336 
    337337        def build_addresses(rcpts): 
    338338            """Format and remove invalid addresses""" 
     339            if rcpts: 
     340                rcpts_temp = [] 
     341                for addr_tmp in rcpts: 
     342                    if addr_tmp == 'false': 
     343                        continue 
     344                    if ((self.email_map.has_key(addr_tmp)) and \ 
     345                        ((self.email_map[addr_tmp].count('@') > 1))): 
     346                        for address in \ 
     347                            self.email_map[addr_tmp].replace(',', ' ').split(): 
     348                            rcpts_temp.append(address) 
     349 
     350                for add in rcpts_temp: 
     351                    rcpts.append(add) 
    339352            return filter(lambda x: x, \ 
    340353                          [self.get_smtp_address(addr) for addr in rcpts]) 
    341354