mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-07 03:38:05 -05:00
Merge patch to set sensitivy on VTODO
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2155 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
3e7672009a
commit
efdec3e3c5
@ -1464,6 +1464,14 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
vEvent.setPropertyValue("DESCRIPTION", getPropertyIfExists(davPropertySet, "description"));
|
vEvent.setPropertyValue("DESCRIPTION", getPropertyIfExists(davPropertySet, "description"));
|
||||||
vEvent.setPropertyValue("PRIORITY", convertPriorityFromExchange(getPropertyIfExists(davPropertySet, "importance")));
|
vEvent.setPropertyValue("PRIORITY", convertPriorityFromExchange(getPropertyIfExists(davPropertySet, "importance")));
|
||||||
vEvent.setPropertyValue("CATEGORIES", getPropertyIfExists(davPropertySet, "keywords"));
|
vEvent.setPropertyValue("CATEGORIES", getPropertyIfExists(davPropertySet, "keywords"));
|
||||||
|
String sensitivity = getPropertyIfExists(davPropertySet, "sensitivity");
|
||||||
|
if ("2".equals(sensitivity)) {
|
||||||
|
vEvent.setPropertyValue("CLASS", "PRIVATE");
|
||||||
|
} else if ("3".equals(sensitivity)) {
|
||||||
|
vEvent.setPropertyValue("CLASS", "CONFIDENTIAL");
|
||||||
|
} else if ("0".equals(sensitivity)) {
|
||||||
|
vEvent.setPropertyValue("CLASS", "PUBLIC");
|
||||||
|
}
|
||||||
|
|
||||||
if (instancetype == null) {
|
if (instancetype == null) {
|
||||||
vEvent.type = "VTODO";
|
vEvent.type = "VTODO";
|
||||||
@ -1506,14 +1514,6 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
StringUtil.convertZuluDateTimeToAllDay(convertDateFromExchange(exdate)));
|
StringUtil.convertZuluDateTimeToAllDay(convertDateFromExchange(exdate)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
String sensitivity = getPropertyIfExists(davPropertySet, "sensitivity");
|
|
||||||
if ("2".equals(sensitivity)) {
|
|
||||||
vEvent.setPropertyValue("CLASS", "PRIVATE");
|
|
||||||
} else if ("3".equals(sensitivity)) {
|
|
||||||
vEvent.setPropertyValue("CLASS", "CONFIDENTIAL");
|
|
||||||
} else if ("0".equals(sensitivity)) {
|
|
||||||
vEvent.setPropertyValue("CLASS", "PUBLIC");
|
|
||||||
}
|
|
||||||
String organizer = getPropertyIfExists(davPropertySet, "organizer");
|
String organizer = getPropertyIfExists(davPropertySet, "organizer");
|
||||||
String organizerEmail = null;
|
String organizerEmail = null;
|
||||||
if (organizer != null) {
|
if (organizer != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user