click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: MSGCNTR-200
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: David Horwitz
Reporter: Harriet Truscott
Votes: 7
Watchers: 14
Operations

If you were logged in you would be able to see more operations.
Messages & Forums

Email notification of new posts to forum

Created: 28-Sep-2007 02:51   Updated: 03-Feb-2010 06:33
Component/s: Forums
Affects Version/s: 2.4.0, 2.5.0
Fix Version/s: 2.7.0-a01

Time Tracking:
Not Specified

File Attachments: 1. Microsoft PowerPoint forumsEmailCapabilityPhase1Only.ppt (1.62 MB)
2. Text File revised-SAK-11740-26x.patch (35 kB)
3. Text File SAK-11740-26x.patch (71 kB)
4. Text File SAK-11740-subjectfix.patch (0.8 kB)

Issue Links:
Incorporate
 
Relate


 Description  « Hide
We would like users to have the option of receiving email notifications when new posts are added to the forums. (The email notification text should include the message itself)

Ideally, we would also like people to be able to reply to the thread by email.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Pierre Jarraud added a comment - 02-Nov-2007 00:40
In my university we were asked by colleagues for the same possibility

Mike Osterman added a comment - 11-Dec-2007 12:48
+1 We've had this request as well at Whitman College.

Charles Sievers added a comment - 07-Mar-2008 16:25
This has also been requested by UC Davis users.

Adam Marshall added a comment - 16-Apr-2008 09:11
A big PLUS ONE from Oxford too.

Experience suggests that people dont really use forums. We belive this is because they're out of the way and becuase Email is much easier to use and to keep up with.

Lance Speelmon added a comment - 22-Apr-2008 08:42
Perhaps the FRC should weigh in on this request - maybe an OPC future deliverable? Thanks, L

Joshua Baron added a comment - 12-Jun-2008 09:26
+1 here as well, this feature would help stimulate a great deal more online discussion as users would know if there was "activity" on their discussion topic and be more inclined to enter into the system to read what was being posted.

Josh

Adam Marshall added a comment - 18-Jun-2008 04:44
Further to my comment above, perhaps there should be a less noisey option to "inform when a message is added to a thread which I have contributed to". That would mean that less notification would be recieved but those that were would be more relevant.

There would have to be a corresponding option in the Preferences tool to set up the desired 'notification scheme', like 'Privacy Status', this could be applied on a per-site basis or across the board:

 - no notifications
 - notify me when a thread that I have contributed to has recieved a new message
 - notify me when a topic that I have contributed to has recieved a new message
 - notify me when a forum that I have contributed to has recieved a new message
 - notify me when any posting is made to any forum that i have access to on a site that I'm a member of

Many apologies for adding a whole swathe of complexity to something that was originally fairly simple! But if a jopb's worth doing, it's worth doing well!

Denny added a comment - 19-Jun-2008 17:47
+1
We have this request at the Australian National University as well. Forums is one of the most active tool at the ANU during teaching period.

I'm agree with Adam that user can choose to receive notifications at different level, otherwise it might be too noisy. How about if we use RSS with authentication and user can subscribe RSS feeds at site level, forum level, and topic level? I think RSS will simplify implementation as it does not require the Preferences tool for choosing desired notification scheme.

Is it feasible to implement RSS with Authentication in Sakai?

We are considering to put some development effort implement this.

Matthew Buckett added a comment - 20-Jun-2008 01:02
Sakai already has support for authenticated RSS in the wiki tool and the podcasts tool so you may be able to borrow some code from there.

Personally I would like to see email notifications well supported for although I understand RSS (and would like it supported) most of the people using our Sakai install don't have an RSS reader and don't really understand RSS.

Jason Shao added a comment - 08-Jul-2008 14:50
I'd like to see this as well, as it would greatly improve Forums suitability in the general collaboration space. Ideally, email & RSS, though email is probably the more useful of the 2.

Lance, did the FRC, or any other groups express interest in moving forward on dedicating resources to this item?

Lydia Li added a comment - 26-Aug-2008 16:47
This is a top requirement from Stanford and one main reason we're still using our own legacy forums tool.

Osman Din added a comment - 29-Aug-2008 12:29
+1. We are interested in the e-mail functionality in Forums at Yale.

Peter A. Knoop added a comment - 31-Aug-2008 11:47
Lance/David, this seems to be a highly desired feature for the community. Is there a chance you could look into in time for 2.6?

Lance Speelmon added a comment - 09-Sep-2008 05:15
Not in time for 2.6. It sounds like a nice feature and would make for a great community provided patch. :) Best, L

Lydia Li added a comment - 17-Sep-2008 01:05
fyi, I'm currently working on this for Stanford since we need fill this gap before migrationg our users from our legacy discussion forums tool. I'm developing this in 2.4.x first 'cuz that's what we are running in production. Here is what we are doing:

Users can set their notification preference at the site level. There are 3 levels:
1. Notify me by email whenever a new message is posted
2. Notify me by email when a thread that I have contributed to receives a new message
3. No notification.

We are targeting for Dec08 deployment. I will update my progress later. Will also upload the spec later.

Jason Shao added a comment - 18-Sep-2008 01:23
Lydia,

I'd be interested in helping you test/port to 2.5/trunk.

Are you just looking at tackling notification, or are you also looking at handling:

1. message contents in the email
2. reply via email

as well?

---

Denny,

Is it worth creating a new JIRA to track RSS feeds from Forums?

Jason

Lydia Li added a comment - 18-Sep-2008 15:08
thanks for offering to merge it to the trunk.

In my implementation, the email notification will contain the new posting's content, including any attachments. ( I had to write a customized email service to handle multi-part with attachments, since SakaiEmailService doesn't allow attachments) . We would also include a url that takes the user directly back to the message in Sakai(requires login first if the user is not already logged in) . I'm looking into Joshua Ryan's entitybroker/direct servlet for this. For now, I'm able to take the user directly back to the specific Site's forum tool, (i.e. /portal/site/siteid/page/pageid), but not to a specific message yet.

We are not doing reply via email. Ideally my designer would like forums and message tools to be integrated, but that's for the future (and for someone else:) )
 

Lydia Li added a comment - 22-Oct-2008 22:27
Just a status update. I'm done with coding and we are currently doing QA for our Dec 08 release.

Peter A. Knoop added a comment - 23-Oct-2008 09:31
Lydia, sounds like you've taken this on as a Task, so I'm going to Assign it to you for now so you can keep folks updated. Thanks!

David Horwitz added a comment - 03-Nov-2008 03:57
Hi Lydia,

Is the code available publicly somewhere? I'd love to be able to look at gettting it into our trunk branch for our dec release ;-)


Lydia Li added a comment - 24-Nov-2008 11:23
Attaching the spec which included 2 features Stanford has developed.

Lydia Li added a comment - 01-Dec-2008 12:07
The 2 Stanford features are checked into msgcntr/branches/SAK-11740/ (created from trunk at r54665) :

r54719

A new table is required, and the oracle version of ddl is checked in, at docs/SAK-11740_oracle.sql

The features were originally developed based on 2.4.x but I was able to merge it to the trunk without much problems. I did a quick testing to make sure nothing obvious was broken. Let me know if you have any questions. Please see attached spec (forumsEmailCapabilityPhase1Only.ppt ) for details of these 2 features.


Lydia Li added a comment - 01-Dec-2008 12:26
I mentioned in an earlier comment that ideally we would like the url in the email to take the user directly to the message in Sakai(requires login first if the user is not already logged in) as what the users would see by navigating to that message. I tried out Joshua Ryan's entitybroker/direct servlet for this, and it worked pretty well except the url takes the user to a page with no iframes, so no site tabs or left nav bar, the site context is lost. We didn't like that, so we decided to just have the url take the users back to the specific Site's top level forums view.

David Horwitz added a comment - 01-Dec-2008 23:37
We've merged this into our msbub bracnh and will be qa'id for our 2-6-x release

Peter A. Knoop added a comment - 08-Dec-2008 06:45
Noting that UCT tentatively plans to address this issue for 2.7.

Jean-François Lévêque added a comment - 08-Dec-2008 07:11
This is not resolved in trunk (2.7), AFAICT. I see no trunk commit for this.

Lydia Li added a comment - 11-Dec-2008 14:32

Lydia Li added a comment - 11-Dec-2008 14:35
r54855 was merged to the SAK-11740 branch. (Sorry I forgot to include JIRA # when I checked in the first time. I changed the log later but it doesn't seem to get picked up by 'svn commit' tab anymore )

Matthew Buckett added a comment - 02-Mar-2009 03:02
Is this going to get merged into trunk at any point? Or just stay on the branch?

David Horwitz added a comment - 12-Mar-2009 07:59
2 problems with this implementation:

1) if you opt to get all messages you don't get new threads
2) If you opt to get all messages you could get messages from topics you don't have the read permission in

Diana Lee Perpich added a comment - 17-Jun-2009 07:01
This need is also evident on our campus, particularly within the kinds of sites where the online discussion is "opt in." At course sites where posting is required and for credit, there's less demand for an email *push*. But at sites where posts may be sporatic or where the site participants are not *required* to visit, this is critical missing functionality. The current social networing norm of email notification is one obvious example of the use case.

At umich, perhaps our most conspicuous scenario is that of the Law School. They are looking to move their All School discussion forum into Sakai. The lack of email notification is a hard sell for their students. They are used to a listserv-- total email interaction-- and to Facebook.

In the case of UM.Law (get it, CASE of LAW, ha!) they need just subject lines in the email notification. One reason they're getting out of the listserv is because it's too easy for a disgruntled student to forward the thread to a shaming website like Above the Law. So, the option to include message content or not would be vital. It also makes sense in regards information overload. What about a concoctinated "two lines" of the content, as in Recent Announcements?



Lydia Li added a comment - 06-Jul-2009 09:03
David's email on Fri, 19 Jun 2009 11:41:42 +0200


From: David Horwitz <david.horwitz@uct.ac.za>
To: Lydia Li <lydial@stanford.edu>
CC: Steve Lonn <slonn@umich.edu>, Diana Perpich <dperpich@umich.edu>

Hi Steve,

I have merged in the last 2 fixes that adress a potential disclosure of
information problem. The code in the branch now matches what we have
been running in production for some time.

Regards

David


Christine Doherty added a comment - 22-Jul-2009 17:17
Now that notification is sent when new threads are posted, there is an additional problem that users are getting notification of new threads in topics to which they don't have access. The fix added recently did prevent users from getting email notification of replies posted in topics to which they don't have access, but not to new threads posted.

Stephen Marquard added a comment - 23-Jul-2009 10:20
We are testing to see if we can reproduce this locally in our branch.

David Horwitz added a comment - 07-Sep-2009 03:13
It turns out that in the case of a new thread the threadlocal caching was leading to an incorect permission check in some cases

David Horwitz added a comment - 07-Sep-2009 03:34
Megan the last issue is now fixed in this branch. Can we look at getting this into trunk?

Steve Swinsburg added a comment - 12-Nov-2009 21:05
I've merged the changes back to 2.6.x and will attach a patch, however have discovered a bug:
The email subject says:
New Message Posted to {0} by {1}

Will attach a patch to fix this.

Steve Swinsburg added a comment - 12-Nov-2009 21:32
Attached patch to fix the subject line. It now says:
New Message Posted to Alliance by Sakai Administrator (admin)

The 'Alliance' is our local installation name. This could also possibly be something like the site title perhaps so people know where the message was posted.

Steve Swinsburg added a comment - 12-Nov-2009 21:46
It seems that the list of capabilities listed in the attached PPT and the commits associated with this ticket are quite different. At least in the port back to 2.6.x that I have done, whenever someone replies to a mesage, anyone else that has posted in that thread is emailed. There is no option to 'Watch' or opt out of the emails either. This is going to get annoying fast.

Are user preferences for the emails going to be incorporated into this task?

Steve Swinsburg added a comment - 12-Nov-2009 21:46
Attached patch of changes that add email notification functionality to 2.6.x as SAK-11740-26x.patch

David Horwitz added a comment - 19-Nov-2009 23:54
applied patch from Steve! thanks

Alexis O'Connor added a comment - 18-Dec-2009 03:09
@Steve Your SAK-11740-26x.patch applied very cleanly against our ~2.6 version of msgcntr, but it omits the change on messageforums-app/src/webapp/jsp/discussionForum/forumsOnly/dfForums.jsp. This provides the UI control which enables the user to access and change their email notification settings - which I think you, (from previous correspondence on this JIRA), thought was missing ;-).

Steve Swinsburg added a comment - 18-Dec-2009 04:08
Strange. The patch was generated from the revision that was merged from the branch to trunk, and run up locally, but you are right, it is incomplete and does explain the missing config page. Can you generate a new patch with everything and attach? That will need to go into 2.6.x as well. Thanks.

Alexis O'Connor added a comment - 18-Dec-2009 07:08
Sure. The file I'm attaching is a patch created by running your patch against the latest version of msgcntr on the 2-6-x branch, plus the previously missing diff for dfForums.jsp.


Joshua Baron added a comment - 01-Feb-2010 08:08
Thanks to all for working on this issue.

Could someone provide a status update on how things are working in production at this point?

Thanks! Josh