On 3/31/2017 22:49, RjOllos wrote:
ReplyToTicketSubscriber has been added to the cookbook. See:
https://trac.edgewall.org/wiki/CookBook/Notification/Subscriptions

- Ryan

Thanks, ReplyToTicketSubscriber works well! Is there a way to enable it by default (e.g., in the notification-subscriber section of trac.ini)? I tried adding "notify_replies = ReplyToTicketSubscriber" to the notification-subscriber section, but it didn't show up in the Default rules section of the Preferences Notifications tab.

I noticed that in the plugin's source, the default_subscriptions function returned [], whereas the INotificationSubscribers that are in the Trac core all do something like "return NotificationSystem(self.env).default_subscriptions(klass)" (e.g., https://trac.edgewall.org/browser/branches/1.2-stable/trac/ticket/notification.py?rev=15714#L307).

I tried changing ReplyToTicketSubscriber's default_subscriptions to do the same thing, which made it show up as a Default rule in the Notifications Preferences, but I don't actually get any notifications from it (whereas if I add it under Subscription rules, it works as expected). I haven't tried looking into it further; I wanted to check with the mailing list first to see if y'all had any suggestions :)

--
Name: Dave Huang         |  Mammal, mammal / their names are called /
INet: [email protected] |  they raise a paw / the bat, the cat /
Telegram: @dahanc        |  dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 41 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++

--
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 https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to