Edgewall Software

Ticket #3101: trac-notification-always-cc-broken-in-r3231.patch

File trac-notification-always-cc-broken-in-r3231.patch, 689 bytes (added by Tim Hatch <trac@…>, 6 years ago)

Rough patch against trunk (r3257)

  • notification.py

     
    215215 
    216216    def send(self, torcpts, ccrcpts): 
    217217        hdrs = {} 
    218         dest = torcpts or ccrcpts 
     218        dest = torcpts or ccrcpts or self.config.get('notification', 'smtp_always_cc') 
    219219        if not dest: 
    220220            self.env.log.info('no recipient for a ticket notification') 
    221             return  
     221            return 
    222222        hdrs['Message-ID'] = self.get_message_id(dest[0], self.modtime) 
    223223        hdrs['X-Trac-Ticket-ID'] = str(self.ticket.id) 
    224224        hdrs['X-Trac-Ticket-URL'] = self.ticket['link']