Re: [Trac] Notify [list of users] if any ticket they've ever touched has changed?

2010-07-01 Thread Roger Oberholtzer
On Wed, 2010-06-30 at 12:38 -0400, Matthew Caron wrote:
  I would like to know how. It would allow a middle ground between needing
  all notifications so you are told about new things, and being told
  nothing and having to check for interesting pages you can subscribe to.
  Effectively, each new item advertises itself for subscription. I do
  think one can have a mailing list in the AnnouncerPlugin that is only
  active for certain actions on the item. That would solve it for me.
 
 Can't you register as a change listener, and then check the history to 
 see if it's new or actually changed? This is presumptive that the 
 various change events fire on new page/ticket creation, but I'd at least 
 dummy something up to test the theory. Once you have that, it's pretty 
 simple to notify a list (or even grab all email addresses from the 
 preferences) and tell folks about it.

But I would like to stay with AnnouncerPlugin. The feature set as a
whole is good. Perhaps the plugin should be tweaked. Something like: if
a list or lists with some name exists (e,g, @NewAnything or @NewTickets
or @NewWiki), send these people mail when a corresponding new thing is
made. Then, continue with the usual processing.


-- 
Roger Oberholtzer

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



[Trac] Notify [list of users] if any ticket they've ever touched has changed?

2010-06-30 Thread Matthew Caron

Hey folks,

I want people to be able to be emailed if:

1. Anyone updates a ticket which they have updated.
2. They are on a list of people and/or have chosen that setting (perhaps 
in their preferences).


always_notify_{reporter,owner,updater} all don't work because they might 
not be the reporter, owner or updated.


I can't find anything on Trac Hacks which does it.

Does anyone know how to do this with something already existing (config 
option or hack), or am I writing a new hack for it?


Thanks in advance.
--
SIXNET - Industrial and Wireless Connectivity
331 Ushers Road, Ballston Lake, NY 12019
Tel: 1.518.877.5173, Fax: 1.518.877.8346
www.sixnet.com

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Notify [list of users] if any ticket they've ever touched has changed?

2010-06-30 Thread Roger Oberholtzer
On Wed, 2010-06-30 at 10:25 -0400, Matthew Caron wrote:
 Hey folks,
 
 I want people to be able to be emailed if:
 
 1. Anyone updates a ticket which they have updated.
 2. They are on a list of people and/or have chosen that setting (perhaps 
 in their preferences).
 
 always_notify_{reporter,owner,updater} all don't work because they might 
 not be the reporter, owner or updated.
 
 I can't find anything on Trac Hacks which does it.

http://trac-hacks.org/wiki/AnnouncerPlugin

I know it does #2, allowing multiple lists. #1 is possible if they
select that they want to watch a ticket. The plugin adds an item to the
top of each page to allow this.

What I would like is for users to get notifications of all new
tickets/wiki pages. Then they can visit the page and select to watch it.
The AnnouncerPlugin does not seem to allow that. But the things you ask
for are possible.

-- 
Roger Oberholtzer

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Notify [list of users] if any ticket they've ever touched has changed?

2010-06-30 Thread Matthew Caron

I can't find anything on Trac Hacks which does it.


http://trac-hacks.org/wiki/AnnouncerPlugin


I was worried you'd say that. It's already on my list of things to 
install, but I keep ducking it because we've hooked quite heavily into 
Trac's notification system and AnnouncerPlugin warns that it might break 
all of your notifications.. so it will take me a couple of days of 
testing to make sure that it doesn't.



I know it does #2, allowing multiple lists. #1 is possible if they
select that they want to watch a ticket. The plugin adds an item to the
top of each page to allow this.


Yeah, but I want it to be automatic. I don't want users to have to 
subscribe to every ticket they want to watch.



What I would like is for users to get notifications of all new
tickets/wiki pages. Then they can visit the page and select to watch it.
The AnnouncerPlugin does not seem to allow that.


I'm sure one can add it.


But the things you ask for are possible.


Of that I'm certain. Trac is remarkably flexible in that regard. I was 
just trying to not invent the wheel and all that.


Thanks.

--
SIXNET - Industrial and Wireless Connectivity
331 Ushers Road, Ballston Lake, NY 12019
Tel: 1.518.877.5173, Fax: 1.518.877.8346
www.sixnet.com

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Notify [list of users] if any ticket they've ever touched has changed?

2010-06-30 Thread Roger Oberholtzer
On Wed, 2010-06-30 at 10:51 -0400, Matthew Caron wrote:
  I can't find anything on Trac Hacks which does it.
 
  http://trac-hacks.org/wiki/AnnouncerPlugin
 
 I was worried you'd say that. It's already on my list of things to 
 install, but I keep ducking it because we've hooked quite heavily into 
 Trac's notification system and AnnouncerPlugin warns that it might break 
 all of your notifications.. so it will take me a couple of days of 
 testing to make sure that it doesn't.
 
  I know it does #2, allowing multiple lists. #1 is possible if they
  select that they want to watch a ticket. The plugin adds an item to the
  top of each page to allow this.
 
 Yeah, but I want it to be automatic. I don't want users to have to 
 subscribe to every ticket they want to watch.

It is automatic. In the cc field, set up the list(s) as the default
value. When I added this, I updated the CC field in all existing tickets
to be the a default list called @Tickets.

 
  What I would like is for users to get notifications of all new
  tickets/wiki pages. Then they can visit the page and select to watch it.
  The AnnouncerPlugin does not seem to allow that.
 
 I'm sure one can add it.

I would like to know how. It would allow a middle ground between needing
all notifications so you are told about new things, and being told
nothing and having to check for interesting pages you can subscribe to.
Effectively, each new item advertises itself for subscription. I do
think one can have a mailing list in the AnnouncerPlugin that is only
active for certain actions on the item. That would solve it for me.

 
  But the things you ask for are possible.
 
 Of that I'm certain. Trac is remarkably flexible in that regard. I was 
 just trying to not invent the wheel and all that.
 
 Thanks.
 
 -- 
 SIXNET - Industrial and Wireless Connectivity
 331 Ushers Road, Ballston Lake, NY 12019
 Tel: 1.518.877.5173, Fax: 1.518.877.8346
 www.sixnet.com
 

-- 
Roger Oberholtzer

-- 
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Notify [list of users] if any ticket they've ever touched has changed?

2010-06-30 Thread Matthew Caron

I would like to know how. It would allow a middle ground between needing
all notifications so you are told about new things, and being told
nothing and having to check for interesting pages you can subscribe to.
Effectively, each new item advertises itself for subscription. I do
think one can have a mailing list in the AnnouncerPlugin that is only
active for certain actions on the item. That would solve it for me.


Can't you register as a change listener, and then check the history to 
see if it's new or actually changed? This is presumptive that the 
various change events fire on new page/ticket creation, but I'd at least 
dummy something up to test the theory. Once you have that, it's pretty 
simple to notify a list (or even grab all email addresses from the 
preferences) and tell folks about it.


--
SIXNET - Industrial and Wireless Connectivity
331 Ushers Road, Ballston Lake, NY 12019
Tel: 1.518.877.5173, Fax: 1.518.877.8346
www.sixnet.com

--
You received this message because you are subscribed to the Google Groups Trac 
Users group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.