pem.exchange.moveMailboxes

This method is supported by Operations starting from version 2.8

This method allows to move Mailboxes between Mail Stores. It returns a list of Mailboxes, which have not been moved, where error_code describes the reason.

The method has the following input parameters:

Name

Type

Short Description

mailboxes

array of int

The list of Mailboxes' IDs.

store

int

Destination Store ID.

The method returns the array of structures:

Name

Type

Short Description

mailbox_id

int

The ID of Mailbox.

error_code

int

The reason, why Mailbox cannot be moved. The following values are possible:

  • 1 – Mailbox is deleting now.
  • 2 – Mailbox and target Store belong to different Active Directory domains.
  • 3 – Mailbox and target Store belong to Exchange servers with different versions.
  • 4 – The source Store of Mailbox is failed.
  • 5 – There is not enough free space on the destination Store.
  • 6 – Mailbox is absent, possible it was removed already.