Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#4744 closed enhancement (fixed)

WatchlistPlugin should have email notifications

Reported by: Jeff Hammel Owned by: Martin Scharrer
Priority: normal Component: WatchlistPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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 15 years ago by Martin Scharrer

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 15 years ago by Maxence Bernard

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

comment:3 Changed 15 years ago by agross


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
  1. Modify this file to rename the AnnouncerPlugin links:

0.11/announcerplugin/subscribers/ (lines 147 and 149)

  1. Modify this file to update the version number:


  1. install using easy install
easy_install .

Hope this helps!

comment:4 Changed 15 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 15 years ago by Maxence Bernard

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

Cheers, Maxence

comment:6 Changed 14 years ago by Martin Scharrer

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

comment:7 Changed 14 years ago by Martin Scharrer

Status: newassigned

comment:8 Changed 14 years ago by Martin Scharrer

Resolution: fixed
Status: assignedclosed

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 14 years ago by Martin Scharrer

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Martin Scharrer.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.