mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-05 18:58:02 -05:00
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 {
|
||||
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());
|
||||
|
Loading…
Reference in New Issue
Block a user