Hi Yuyun,

you can disable it in the WorkflowManager, example see attached patch.

Hope that helps

Claudia Jürgen


Yuyun Wirawati ISHAK (LIBRIS) schrieb:
Can we 'switch off' the automatic email notification which inform the
new workflow task/submission?

Thanks

Yuyun

NIE Library

National Institute of Education (Singapore) http://www.nie.edu.sg

DISCLAIMER : The information contained in this email, including any 
attachments, may contain confidential information. This email is intended only 
for the use of the addressee(s) listed above. Unauthorised sight, dissemination 
or any other use of the information contained in this email is strictly 
prohibited. If you have received this email by fault, please notify the sender 
and delete it immediately.



------------------------------------------------------------------------

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword


------------------------------------------------------------------------

_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Index: dspace/config/dspace.cfg
===================================================================
--- dspace/config/dspace.cfg    (revision 3380)
+++ dspace/config/dspace.cfg    (working copy)
@@ -113,7 +113,12 @@
 # inside the email template "charset: <encoding>", otherwise this default is 
used.
 #mail.charset = UTF8
 
+#Workflow notifications to be send, default true
+# if you do not want to have workflow tasks email notifications to be send
+# set this to
+workflow.notifyoftask = false
 
+
 ### i18n -  Locales / Language ####
 # Default Locale
 # A Locale in the form country or country_language or country_language_variant
Index: dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java
===================================================================
--- dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java   
(revision 3380)
+++ dspace-api/src/main/java/org/dspace/workflow/WorkflowManager.java   
(working copy)
@@ -508,7 +508,10 @@
                 wi.update();
 
                 // email notification
-                notifyGroupOfTask(c, wi, mygroup, epa);
+                if 
(ConfigurationManager.getBooleanProperty("workflow.notifyoftask", true))
+                {
+                    notifyGroupOfTask(c, wi, mygroup, epa);
+                }
             }
             else
             {
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to