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) |
|---|
-
notification.py
215 215 216 216 def send(self, torcpts, ccrcpts): 217 217 hdrs = {} 218 dest = torcpts or ccrcpts 218 dest = torcpts or ccrcpts or self.config.get('notification', 'smtp_always_cc') 219 219 if not dest: 220 220 self.env.log.info('no recipient for a ticket notification') 221 return 221 return 222 222 hdrs['Message-ID'] = self.get_message_id(dest[0], self.modtime) 223 223 hdrs['X-Trac-Ticket-ID'] = str(self.ticket.id) 224 224 hdrs['X-Trac-Ticket-URL'] = self.ticket['link']
