mirror of
https://github.com/moparisthebest/davmail
synced 2025-02-28 17:31:52 -05:00
Carddav: disable contact picture handling on Exchange 2007
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1314 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
5ea415bf49
commit
04bf3294bc
@ -776,6 +776,8 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
|
||||
ItemId newItemId = new ItemId(createOrUpdateItemMethod.getResponseItem());
|
||||
|
||||
// disable contact picture handling on Exchange 2007
|
||||
if (!"Exchange2010".equals(serverVersion)) {
|
||||
// first delete current picture
|
||||
if (currentFileAttachment != null) {
|
||||
DeleteAttachmentMethod deleteAttachmentMethod = new DeleteAttachmentMethod(currentFileAttachment.attachmentId);
|
||||
@ -794,6 +796,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
CreateAttachmentMethod createAttachmentMethod = new CreateAttachmentMethod(newItemId, attachment);
|
||||
executeMethod(createAttachmentMethod);
|
||||
}
|
||||
}
|
||||
|
||||
GetItemMethod getItemMethod = new GetItemMethod(BaseShape.ID_ONLY, newItemId, false);
|
||||
getItemMethod.addAdditionalProperty(Field.get("etag"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user