MailBoxDumpRequest request = new MailBoxDumpRequest();
request.setAdminEmailAddress(adminEmail);
//c.add(Calendar.MONTH, -1);
request.setEndDate(c.getTime());
//c.add(Calendar.MONTH, -1);
//request.setBeginDate(c.getTime());
request.setPackageContent("FULL_MESSAGE");
request.setIncludeDeleted(false);
request.setUserEmailAddress(user + "@" + domain);
LOGGER.log(Level.INFO, "\n-------------createMailboxDumpRequest-------------");
sampleEntry = service.createMailboxDumpRequest(request);
LOGGER.log(Level.INFO, "\nCreated request - " + sampleEntry.getAllProperties().toString());
String createdId = sampleEntry.getProperty("requestId");
LOGGER.log(Level.INFO, "\n-------------retrieveMailboxDumpRequest-------------");
sampleEntry = service.retrieveMailboxDumpRequest(user, createdId);
LOGGER.log(Level.INFO, "\nRetrieved dump request - "
+ sampleEntry.getAllProperties().toString());
This retrieves all the mails but sometimes it returns 2 urls for the export list. Also I am not able to get a hold of all the emails.
My questions are as follows:
1. How can I get the exactly all the mails from the ALL MAILS folder? Is there any special property that needs to be set????
2. Why does it return 2 urls? - I assumed the answer to this would be - It returns 2 urls for 2 users. I have 2 users under my control in the admin account.
Could someone please clarify this????