EWS: new fix to improve failover on error retrieving MimeContent

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1898 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-02-06 20:08:10 +00:00
parent 443a3df55b
commit ddae179369
1 changed files with 1 additions and 1 deletions

View File

@ -502,9 +502,9 @@ public class EwsExchangeSession extends ExchangeSession {
*/
protected byte[] getContent(ItemId itemId) throws IOException {
GetItemMethod getItemMethod = new GetItemMethod(BaseShape.ID_ONLY, itemId, true);
executeMethod(getItemMethod);
byte[] mimeContent = null;
try {
executeMethod(getItemMethod);
mimeContent = getItemMethod.getMimeContent();
} catch (EWSException e) {
LOGGER.warn("GetItem with MimeContent failed: "+e.getMessage());