Ticket #2247: notify_own_changes.013dev-r10668.patch
| File notify_own_changes.013dev-r10668.patch, 1.7 KB (added by gt4329b, 14 months ago) |
|---|
-
notification.py
48 48 'true', 49 49 """Always send notifications to the person who causes the ticket 50 50 property change and to any previous updater of that ticket.""") 51 52 notify_own_changes = BoolOption('notification', 'notify_own_changes', 53 'false', 54 """Send notifications even if it was triggered by the user itself. If 55 this option is "false" (the default) all recipients will only be notified about 56 changes made by other users.""") 51 57 52 58 ticket_subject_template = Option('notification', 'ticket_subject_template', 53 59 '$prefix #$ticket.id: $summary', … … 328 334 'always_notify_owner') 329 335 notify_updater = self.config.getbool('notification', 330 336 'always_notify_updater') 337 notify_own_changes = self.config.getbool('notification', 338 'notify_own_changes') 331 339 332 340 ccrecipients = self.prev_cc 333 341 torecipients = [] … … 377 385 elif updater: 378 386 torecipients.append(updater) 379 387 388 if not notify_own_changes and updater: 389 torecipients = [r for r in torecipients if r != updater] 390 ccrecipients = [r for r in ccrecipients if r != updater] 391 380 392 return (torecipients, ccrecipients) 381 393 382 394 def get_message_id(self, rcpt, modtime=None):
