1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

Caldav: Fix METHOD on create from iPhone

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1354 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-08-17 14:27:07 +00:00
parent 93d528704d
commit 57a379c67b
2 changed files with 5 additions and 1 deletions

View File

@ -127,6 +127,11 @@ public class VCalendar extends VObject {
String calendarServerAccess = getPropertyValue("X-CALENDARSERVER-ACCESS");
String now = ExchangeSession.getZuluDateFormat().format(new Date());
// fix method from iPhone
if (!fromServer && getPropertyValue("METHOD") == null) {
setPropertyValue("METHOD", "PUBLISH");
}
// iterate over vObjects
for (VObject vObject : vObjects) {
if ("VEVENT".equals(vObject.type)) {

View File

@ -1140,7 +1140,6 @@ public class EwsExchangeSession extends ExchangeSession {
protected void loadVtimezone() {
String timezoneId = getTimezoneidFromOptions();
try {
deleteFolder("davmailtemp");
createCalendarFolder("davmailtemp", null);
EWSMethod.Item item = new EWSMethod.Item();
item.type = "CalendarItem";