Scripting properties

The API uses a scriptable object to allow enabling and disabling of mailboxes. You can set set the following properties on the object before enabling or disabling a mailbox:

Required properties:

Either of the following properties is required. They are mutually exclusive, so setting one clears the other:

If the following optional properties are not set, the script uses default settings:

If you supply this standard set of properties, the code generates a script and runs it.

Methods are available on the object to enable and disable a mailbox. These methods use the settings above to generate a script to enable or disable a mailbox or set of mailboxes matching the DN or LDAP query.