Edgewall Software

Changes between Version 91 and Version 92 of TracNotification


Ignore:
Timestamp:
Feb 26, 2017, 10:26:18 AM (7 years ago)
Author:
anonymous
Comment:

[notification-subscriber] example

Legend:

Unmodified
Added
Removed
Modified
  • TracNotification

    v91 v92  
    6666
    6767For example to unsubscribe from notifications for one's own changes and comments, the rule "Never notify: I update a ticket" should be added above other subscription rules.
     68
     69The subscription rule name on the left side of the `=` can be anything, it has no meaning outside this configuration file. The subscriber name on the right side of the `=` must be one of the subscribers listed in the above table.
     70
     71The following attributes of default subscriptions can be configured:
     72* `.distributor` (Default: `email`)
     73  * Other values require plugins. For example `on-site` requires th:OnSiteNotificationsPlugin.
     74* `.priority` (Default: `100`)
     75  * Smaller values override larger values.
     76  * If you use `0`, then users will not be able to override this rule.
     77* `.adverb` (Default: `always`)
     78  * `never` can be used to silence other subscription rules with higher values.
     79* `.format` (Default: `text/plain`)
     80  * Other values require plugins. For example `text/html` requires th:TracHtmlNotificationPlugin.
     81
     82=== Example Configuration (default subscriptions)
     83{{{#!ini
     84[notification-subscriber]
     85always_notify_owner = TicketOwnerSubscriber
     86always_notify_owner.distributor = email
     87always_notify_owner.priority = 100
     88always_notify_owner.adverb = always
     89always_notify_owner.format = text/plain
     90
     91always_notify_previous_updater = TicketPreviousUpdatersSubscriber
     92
     93never_notify_updater = TicketUpdatersSubscriber
     94never_notify_updater.adverb = never
     95never_notify_updater.priority = 0
     96
     97notify_cc_html = CarbonCopySubscriber
     98notify_cc_html.format = text/html
     99}}}
    68100
    69101=== Customizing the e-mail subject