itemShape.setBaseShape(DefaultShapeNamesType.DEFAULT);
// I tried to use ID_ONLY and add some AdditionalProperties, but the
// schema appears to be screwy and not have FieldURI in there correctly
findItem.addNewParentFolderIds().addNewDistinguishedFolderId().setId(parent);
BodyType response = sendRequest(request);
FindItemResponseMessageType responseMessage =
response.getFindItemResponse().getResponseMessages().getFindItemResponseMessageArray()[0];
if (responseMessage.getResponseCode() != ResponseCodeType.NO_ERROR)
{
throw new FailedToFindMessage(
"ResponseCode some sort of error: " + responseMessage.getResponseCode());
}
for (MessageType email : responseMessage.getRootFolder().getItems().getMessageArray())
{
String folderId = RequiredEmail.getFolderId(email.getSubject());
if (folderId != null)
{
List<MessageId> emails = emailResults.get(folderId);