Modify

Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#4744 closed enhancement (fixed)

WatchlistPlugin should have email notifications

Reported by: k0s Owned by: martin_s
Priority: normal Component: WatchlistPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

The WatchlistPlugin has a more sensible structure for watched changes than tWikiNotificationPlugin (which only works for the wiki), AnnouncerPlugin (which works based on path instead of individual resources), or the CC field (which conflates ticket attributes with event listeners).

However, the WatchlistPlugin does not do email or other notification. This is a big drawback.

Email notification should be implemented. I am willing to assist if requested.

Attachments (0)

Change History (9)

comment:1 Changed 6 years ago by martin_s

Very nice idea. So far I know Trac provides some change listener methods which can be used to trigger the notification, but I don't have much experience with them. I also have to check how to send emails using Trac.

I don't have any time for that at the moment. Maybe in a couple of weeks ... But feel free to make some outline how to program it.

comment:2 Changed 5 years ago by maxence

+1 for this, this would allow to workaround the limitations of Trac ticket's CC field.

comment:3 Changed 5 years ago by agross

Workaround:

I downloaded and modified the source of AnnouncerPlugin to rename its "Watch This"/"Unwatch This" links to "Email Changes" and "Don't Email Changes".

  1. SVN Checkout AnnouncerPlugin
mkdir modified_announcer
cd modified_announcer
svn co http://trac-hacks.org/svn/announcerplugin/0.11/
  1. Modify this file to rename the AnnouncerPlugin links:

0.11/announcerplugin/subscribers/watchers.py (lines 147 and 149)

  1. Modify this file to update the version number:

0.11/setup.py

  1. install using easy install
easy_install .

Hope this helps!

comment:4 Changed 5 years ago by agross

(The workaround described above will enable you to use both AnnouncerPlugin and WatchlistPlugin without confusing your users. AnnouncerPlugin emails you changes, and WatchlistPlugin adds your changes to a watchlist page. It doesn't change the functionality of either plugin.)

comment:5 Changed 5 years ago by maxence

@agross: thanks a lot for the tip, the AnnouncerPlugin does exactly what I was looking for!

Cheers,
Maxence

comment:6 Changed 5 years ago by martin_s

(In [6809]) Added first code for email notifications. See #4744.

comment:7 Changed 5 years ago by martin_s

  • Status changed from new to assigned

comment:8 Changed 5 years ago by martin_s

  • Resolution set to fixed
  • Status changed from assigned to closed

I now added a notification column into the watchlist which allows the user to enable/disable the AnnouncerPlugin notifications for a watched wiki or ticket. This needs of course the AnnouncerPlugin installed. The modifications mentioned in comment:3 to change the context navigation bar labels of the AnnouncerPlugin are still recommended. Otherwise there are Watch and Watch this entries in the bar.

Use revision [6834] or later.

comment:9 Changed 5 years ago by martin_s

See #5682 for further integration of the WatchlistPlugin and AnnouncerPlugin.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.