[Building Sakai] Announcements Email Notification Preferences

Savitha Prakash savithap at umich.edu
Thu Aug 5 06:23:42 PDT 2010


Hi Ben,

The following line @AnnouncementAction.postOrSaveDraft (line 2952 in sakai
trunk) redirects to SiteEmailNotificationAnnc to send emails.

channel.commitMessage(msg, noti,
"org.sakaiproject.announcement.impl.SiteEmailNotificationAnnc");

In the above line, the variable noti contains the value of the notification
which is set @AnnouncementAction.postOrSaveDraft (line 2759), which will be,
I think 0, 1 or 2 for no, low or high notification. So by passing the value
of the noti as 0, after checking the user preference, should address your
requirement.

- Savitha




On Tue, Aug 3, 2010 at 9:08 PM, Tilson, Benjamin <btilson at csu.edu.au> wrote:

>  Hi,
>
>
>
> I’m trying to track down the particular code where Announcements checks a
> users notification preferences for low priority announcements before it
> sends an email?
>
>
>
> We are looking to implement a fourth option in user Preferences under
> Announcement notifications.  This option will be to stop not only low
> priority notifications but high priority as well (essentially stop all
> Announcement notifications).
>
>
>
> Any help with this would be much appreciated.
>
>
>
> Thanks,
>
> Ben
>
>
> ------------------------------------------------------------------------------------
>
> *Ben Tilson*
>
> Solutions Programmer
>
> Div. Information Technology,
>
> Charles Sturt University, Thurgoona Campus
>
> Ph: (02) 6051 9191
>
> Fax: (02) 6051 9919
>
> Email: btilson at csu.edu.au
>
> www.csu.edu.au<http://../../../../btilson.CSUMAIN/Application%20Data/Microsoft/Signatures/www.csu.edu.au%20>
>
>
>
> ------------------------------
> YOU MUST READ THIS NOTICE
>
> This email has been sent by Charles Sturt University (CSU) (ABN 83 878 708
> 551, CRICOS 00005F). This email (and any attachment) is confidential and is
> intended for the use of the addressee(s) only. If you are not the intended
> recipient of this email, you must not copy, distribute, take any action in
> reliance on it or disclose it to anyone. Any confidentiality is not waived
> or lost by reason of mistaken delivery. The views expressed in this email
> are not necessarily those of CSU. Email should be checked for viruses and
> defects before opening. CSU does not accept liability for viruses or any
> consequence which arise as a result of this email transmission. Email
> communications with CSU may be subject to automated email filtering, which
> could result in the delay or deletion of a legitimate email before it is
> read at CSU. The Commonwealth Register of Institutions and Courses for
> Overseas Students (CRICOS) Provider Number for Charles Sturt University is
> 00005F (NSW) and 01947G (VIC) and 02960B (ACT).
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100805/610072a7/attachment.html 


More information about the sakai-dev mailing list