On Thu, Jan 8, 2015 at 2:45 AM, Gernot Kollegger <[email protected]> wrote:
> We are using trac for our support workflow. > We want to be able to supress messages to external users if we set a > certain custom field within a ticket. > > Futher more we have defined a workflow and messages to external members > should only be send in specific ticket states. > > Is there a way to inspect and modifiy the recipients list of the > notification system before the emails are processed? > > -- > Gernot > Trac 1.0 / Debian The core of AnnouncerPlugin is being integrated to Trac for release in 1.2, so that will open up more possibilities along the lines of what QuietPlugin implements: http://trac-hacks.org/wiki/QuietPlugin For now, you can probably implement the feature by replacing get_ticket_notification_recipients (1), or writing a wrapper that calls it. See FlexibleReporterNotificationPlugin (2) for an example of how to replace a function: (1) http://trac.edgewall.org/browser/tags/trac-1.0/trac/ticket/notification.py?marks=76#L75 (2) http://trac-hacks.org/wiki/FlexibleReporterNotificationPlugin -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
