mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-07 03:38:05 -05:00
Do not send Exchange 2003 appointment creation request to Exchange 2007
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1561 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
3bc182ff08
commit
47e90d9bec
@ -2086,10 +2086,11 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
String folderPath = getFolderPath("davmailtemp");
|
String folderPath = getFolderPath("davmailtemp");
|
||||||
createCalendarFolder(folderPath, null);
|
createCalendarFolder(folderPath, null);
|
||||||
|
|
||||||
|
String fakeEventUrl = null;
|
||||||
|
if ("Exchange2003".equals(serverVersion)) {
|
||||||
PostMethod postMethod = new PostMethod(URIUtil.encodePath(folderPath));
|
PostMethod postMethod = new PostMethod(URIUtil.encodePath(folderPath));
|
||||||
postMethod.addParameter("Cmd", "saveappt");
|
postMethod.addParameter("Cmd", "saveappt");
|
||||||
postMethod.addParameter("FORMTYPE", "appointment");
|
postMethod.addParameter("FORMTYPE", "appointment");
|
||||||
String fakeEventUrl = null;
|
|
||||||
try {
|
try {
|
||||||
// create fake event
|
// create fake event
|
||||||
int statusCode = httpClient.executeMethod(postMethod);
|
int statusCode = httpClient.executeMethod(postMethod);
|
||||||
@ -2099,6 +2100,7 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
} finally {
|
} finally {
|
||||||
postMethod.releaseConnection();
|
postMethod.releaseConnection();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// failover for Exchange 2007, use PROPPATCH with forced timezone
|
// failover for Exchange 2007, use PROPPATCH with forced timezone
|
||||||
if (fakeEventUrl == null) {
|
if (fakeEventUrl == null) {
|
||||||
ArrayList<DavConstants> propertyList = new ArrayList<DavConstants>();
|
ArrayList<DavConstants> propertyList = new ArrayList<DavConstants>();
|
||||||
|
Loading…
Reference in New Issue
Block a user