Edgewall Software

Opened 9 years ago

Last modified 7 years ago

#11875 closed enhancement

Notification subscriber config section — at Initial Version

Reported by: Peter Suter Owned by:
Priority: normal Milestone: 1.1.5
Component: notification Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Trac already has a few notification config options to control default subscriptions:

  • always_notify_updater
  • always_notify_reporter
  • always_notify_owner
  • never_notify_self (soon?)

But we don't want always_notify_close_reporter_except_when_reporter_closed_the_ticket. :)

The new INotificationSubscriber makes it easy to add new such rules, but if we provide more implementations we may actually need more config options. Also there could now be different message formats, distribution transports, default subscription priorities (and required authentication and later maybe permissions and more).

We could instead try to add a [notification-subscriber] section:

[notification-subscriber]
always_notify_updater=TicketUpdaterSubscriber
always_notify_updater.default=email, 100, always, text/plain
always_notify_reporter=TicketReportedSubscriber
always_notify_reporter.default=email, 100, always, text/plain
always_notify_owner=TicketOwnerSubscriber
always_notify_owner.default=email, 100, always, text/plain

always_notify_owner.requires_authentication=True
always_notify_owner.permission=CUSTOM_CONFIG_NOTIFY_OWNER_PERMISSION
...

(Or some equivalent notation.)

Change History (0)

Note: See TracTickets for help on using tickets.