On 16.01.2017 14:37, Mo wrote:
Which options are possible here?
 Currenty I have

|
[notification-subscriber]
always_notify_owner =TicketOwnerSubscriber
always_notify_cc =CarbonCopySubscriber
always_notify_previous_updater =TicketPreviousUpdatersSubscriber
always_notify_updater =TicketUpdaterSubscriber
|
The rule name on the left can be whatever you want. It has no meaning outside this config file. The INotificationSubscriber name on the right must implement support for this config section to have any effect. TicketOwnerSubscriber, TicketUpdaterSubscriber, TicketPreviousUpdatersSubscriber, TicketReporterSubscriber and CarbonCopySubscriber all implement support for the following:
The default attributes are:
* distributor: email
* priority: 100
* adverb: always
* format: text/plain
You can use the rule name to override these defaults:
[notification-subscriber]
rule_name = TicketOwnerSubscriber
rule_name.distributor = another_distributor_transport_name
rule_name.priority = 222
rule_name.adverb = never
rule_name.format = another_format
...

The distributor must be the name of a transport implemented by an INotificationDistributor. The priority must be some integer. Smaller values override larger ones, so if you use zero here, then users will not be able to override this rule.
The adverb can be either "always" or "never".
The format must be one of the supported format style names implemented by an INotificationFormatter for the selected transport and resource type of the subscriber.

The "TesterCustomFieldSubscriber" posted earlier implements supports for the same things.
AlwaysEmailSubscriber currently does not support this section.

As this is not documented I need to ask some things.
Why isn't that defined like default_subscriptions=TicketOwnerSubscriber,CarbonCopySubscriber,TicketPreviousUpdatersSubscriber,TicketUpdaterSubscriber ?
What if I mix up those variables?
Does the above answer these questions?


Best regards,
Peter

--
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to