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:
parent
443a3df55b
commit
ddae179369
|
@ -502,9 +502,9 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||||
*/
|
*/
|
||||||
protected byte[] getContent(ItemId itemId) throws IOException {
|
protected byte[] getContent(ItemId itemId) throws IOException {
|
||||||
GetItemMethod getItemMethod = new GetItemMethod(BaseShape.ID_ONLY, itemId, true);
|
GetItemMethod getItemMethod = new GetItemMethod(BaseShape.ID_ONLY, itemId, true);
|
||||||
executeMethod(getItemMethod);
|
|
||||||
byte[] mimeContent = null;
|
byte[] mimeContent = null;
|
||||||
try {
|
try {
|
||||||
|
executeMethod(getItemMethod);
|
||||||
mimeContent = getItemMethod.getMimeContent();
|
mimeContent = getItemMethod.getMimeContent();
|
||||||
} catch (EWSException e) {
|
} catch (EWSException e) {
|
||||||
LOGGER.warn("GetItem with MimeContent failed: "+e.getMessage());
|
LOGGER.warn("GetItem with MimeContent failed: "+e.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue