Jump to: navigation, search

Set up mailbox and user time zones

Feature Server now enables you to use the set_mailbox_user_tz.py script to update, in bulk, the time zones of mailboxes and the time zones of the users who are associated with that mailbox. This script is located in the <FS installation path>\python\util folder. Use the -e option to enable the script to make changes.

Important
If the time zone of a group mailbox is updated by using this script, then the timezone of the users associated with the group mailbox will not be updated.

How to deploy the script?

To deploy the set_mailbox_user_tz.py script, follow these steps:

  1. On the master Feature Server instance:
    • For 8.1.202.10 and later versions of Feature Server, copy the jython-standalone-2.7.1b2.jar file from <FS installation path>\work\jetty-x.x.x.x-pppp-fs.war-_fs-any-\webapp\WEB-INF\lib to <FS installation path>\python\.
    • For 8.1.202.09 and previous versions of Feature Server, copy the jython-2.7b1.jar file from <FS installation path>\work\jetty-x.x.x.x-pppp-fs.war-_fs-any-\webapp\WEB-INF\lib to <FS installation path>\python\.
  2. Open console and navigate to <FS installation path>\python\util, which contains the scripts.
  3. Copy both the above-mentioned python scripts to the path <FS installation path>\python\.
  4. Enter the command to set JYTHONPATH:
    Windows
    set JYTHONPATH=<FS installation path>\python
    Linux
    export JYTHONPATH=<FS installation path>/python

How to prepare the input file for the script?

Create an input file named mailbox_user_tz.csv.
The file must contain pairs delimited by a comma <mailbox number>,<Time Zone Id>.
For example, the following is a sample of the input-file content:
7100,America/New_York
7200,America/Los_Angeles

How to run the script?

Use the following command line format to run the set_mailbox_user_tz.py script for 8.1.202.09 and previous versions of Feature Server:

java -jar jython-2.7b1.jar set_mailbox_user_tz.py -H localhost -p 9160 -i mailbox_user_tz.csv -o set_mailbox_user_tz.log

Use the following command line format to run the set_mailbox_user_tz.py script for 8.1.202.10 and later versions of Feature Server:

java -jar jython-standalone-2.7.1b2.jar set_mailbox_user_tz.py -H localhost -p 9160 -i mailbox_user_tz.csv -o set_mailbox_user_tz.log

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on September 23, 2018, at 22:53.