Home
Disable automatic e-mail notification on download
Overview
When an authenticated user downloads a file for the first time, Files automatically sets a preference so that the user receives e-mails when that file is edited. The assumption is that users want to receive e-mails about updates to the file. You can disable this automatic preference-setting by changing a configuration property in files-config.xml.
If you disable automatic preference setting, users can enable the preference by opening the file page, clicking...
More actions | Set E-mail Notifications | I want to receive an e-mail when this file changes
Similarly, if automatic preference setting is enabled, users can disable the preference by opening the file page, clicking...
More actions | Set E-mail Notifications
...and then deselecting...
I want to receive an e-mail when this file changes
E-mail notifications can also be enabled or disabled for all features.
- Start the wsadmin client.
- Access the Files configuration files...
- Stand-alone deployment:
execfile("filesAdmin.py")
- Network deployment:
execfile("profile_root/config/bin_lc_admin/filesAdmin.py")
If you are asked to select a server, you can select any server.
- Check out the Files configuration files...
FilesConfigService.checkOutConfig("<working_directory>", "cell_name")where:
- <working_directory> is the temporary working directory to which the configuration XML and XSD files are copied. The files are kept in this working while you make changes to them.
- cell_name is the name of the WebSphere Application Server cell hosting the Lotus Connections feature. This argument is required even in stand-alone deployments. If you do not know the cell name, do one of the following to determine it:
- Stand-alone deployment: Look at the name after the following in the file system:
WAS_HOME\profiles\profile_name\config\cells\
- Network deployment: Type the following command while in the wsadmin command processor:
print AdminControl.getCell()
For example:
- AIX/Linux:
FilesConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell")
- Microsoft Windows:
FilesConfigService.checkOutConfig("c:/temp","foo01Cell01")
To check out e-mail templates with the configuration files you can add the parameter includeEmailTemplates, and set it to
"true"For example:
FilesConfigService.checkOutConfig("/opt/my_temp_dir", "CommServerNode01Cell", includeEmailTemplates = "true")You can edit the e-mails that users receive by editing the templates. For information on e-mail templates, see the topic Customizing e-mail templates.
- To set the emailNotification.addOnMediaDownload.enabled property to
false..
FilesConfigService.updateConfig("emailNotification.addOnMediaDownload.enabled", "false")
- Check in the changed configuration property file using the following wsadmin client command:
FilesConfigService.checkInConfig()
- To exit the wsadmin client, type exit at the prompt.
- Stop and restart the server hosting the Files feature.
Related tasks
Administer Files
Enable e-mail notifications
Customizing e-mail templates
Start the wsadmin client