Ticket #6613: trac-notification-cc_on_newticket.patch
| File trac-notification-cc_on_newticket.patch, 1.1 KB (added by me@…, 4 years ago) |
|---|
-
ticket/notification.py
old new 41 41 """Always send notifications to the person who causes the ticket 42 42 property change.""") 43 43 44 cc_on_newticket = Option('notification', 'cc_on_newticket', '', 45 """Email address(es) to send notifications about newly created 46 tickets to, addresses can only be seen when use_public_cc is 47 enabled (Cc:).""") 44 48 45 49 class TicketNotifyEmail(NotifyEmail): 46 50 """Notification of ticket changes.""" … … 220 224 if notify_owner: 221 225 torecipients.append(row[2]) 222 226 227 # Send tickets to the cc_on_newticket list of mailaddresses if this is a new ticket 228 if self.newticket: 229 nccrecipients = self.config.get('notification', 'cc_on_newticket') 230 if nccrecipients: 231 ccrecipients.append(nccrecipients) 232 223 233 # Harvest email addresses from the author field of ticket_change(s) 224 234 if notify_reporter: 225 235 cursor.execute("SELECT DISTINCT author,ticket FROM ticket_change "
