wiki:FlexibleReporterNotificationPlugin

Control when notifications are sent to the reporter of a ticket

Notice: This plugin is deprecated in Trac >= 1.2, which has a new extensible notification system. Plugins implementing the INotificationSubscriber interface allow fine-grained control of notifications. See the examples, or ask on the MailingList if you need help implementing a subscriber.

Description

This plugin controls notifications to the reporter. It is a simple extension of Trac's notification module, allowing the reporter to be notified only when the ticket is in certain states.

By default Trac provides only two options, either always notify the reporter or never notify the reporter. These two extremes are not always useful and this plugin allows for the notification to be sent depending on the state that the plugin is in.

Bugs/Feature Requests

Existing bugs and feature requests for FlexibleReporterNotificationPlugin are here.

If you have any issues, create a new ticket.

defect

4 / 4

enhancement

3 / 3

Download

Download the zipped source from here.

Source

You can check out FlexibleReporterNotificationPlugin from here using Subversion, or browse the source with Trac.

Installation and Configuration

Install the plugin in the plugins directory of your Trac implementation.

Edit the trac.ini file by adding the following lines:

[notification]
always_notify_reporter = true
reporter_states = new,closed,reopened

The line above specifies the states in which the reporter should be notified. In the above example the reporter will be notified only when the ticket is in one of the new, closed or reopened states.

Recent Changes

14309 by rjollos on 2014-12-08 19:36:30
0.1: Removed duplicate author in setup.py and fixed indentation.
13703 by rjollos on 2014-02-20 07:57:23
Added 3-Clause BSD license.
13701 by rjollos on 2014-02-20 07:36:41
Complete rework of plugin, using ideas from #11210 in the patch by chris-at. Fixes #7554, Refs #8821, #11210.

Note that only one instance of the reporter in to_recipients is removed. So for instance, if the reporter is also the owner and always_notify_owner is True, then the reporter will still receive a notification.

This has been lightly tested, so please report back if you find any issues.

(more)

Author/Contributors

Author: CStrac
Maintainer: none (deprecated)
Contributors: chris-at, rjollos

Last modified 8 years ago Last modified on Apr 26, 2017, 8:47:01 PM