Here is the script to request a mailbox export:
public static void startExport(String adminUser, String adminPwd, String
exportUserEmail)
{
System.out.println("admin user " + adminUser);
MailBoxDumpRequest request = new MailBoxDumpRequest();
request.setAdminEmailAddress(adminUser);
request.setUserEmailAddress(exportUserEmail);
request.setIncludeDeleted(true);
request.setPackageContent("FULL_MESSAGE");
try
{
AuditService service = new AuditService(adminUser, adminPwd, "
hyattvoi.com", "hyattvoi.com-auditapp-v1");
GenericEntry mailboxDumpEntry =
service.createMailboxDumpRequest(request);
System.out.println(mailboxDumpEntry.getId());
}catch(Exception exp)
{
System.out.println(exp.getMessage());
}
}
Here is the status:
Request ID: 23966540
User: <user>
Status: ERROR
Request Date: 2011-06-16 20:42
Requested By: <admin>
Requested Parts: FULL_MESSAGE
Request Filter: None
Include Deleted: true
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/YTaU6IxaBrgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.