mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-08 04:08:12 -05:00
Caldav: do not try to load tasks MIME body
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2040 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
12f95e976c
commit
520a1429be
@ -1347,7 +1347,9 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
@Override
|
@Override
|
||||||
public byte[] getEventContent() throws IOException {
|
public byte[] getEventContent() throws IOException {
|
||||||
byte[] result = null;
|
byte[] result = null;
|
||||||
LOGGER.debug("Get event subject: " + subject + " href: " + getHref() + " permanentUrl: " + permanentUrl);
|
LOGGER.debug("Get event subject: " + subject + " contentclass: "+contentClass+" href: " + getHref() + " permanentUrl: " + permanentUrl);
|
||||||
|
// do not try to load tasks MIME body
|
||||||
|
if (!"urn:content-classes:task".equals(contentClass)) {
|
||||||
// try to get PR_INTERNET_CONTENT
|
// try to get PR_INTERNET_CONTENT
|
||||||
try {
|
try {
|
||||||
result = getICSFromInternetContentProperty();
|
result = getICSFromInternetContentProperty();
|
||||||
@ -1369,6 +1371,7 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
} catch (MessagingException e) {
|
} catch (MessagingException e) {
|
||||||
LOGGER.warn(e.getMessage());
|
LOGGER.warn(e.getMessage());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// failover: rebuild event from MAPI properties
|
// failover: rebuild event from MAPI properties
|
||||||
if (result == null) {
|
if (result == null) {
|
||||||
@ -2081,6 +2084,7 @@ public class DavExchangeSession extends ExchangeSession {
|
|||||||
ITEM_PROPERTIES.add("instancetype");
|
ITEM_PROPERTIES.add("instancetype");
|
||||||
ITEM_PROPERTIES.add("urlcompname");
|
ITEM_PROPERTIES.add("urlcompname");
|
||||||
ITEM_PROPERTIES.add("subject");
|
ITEM_PROPERTIES.add("subject");
|
||||||
|
ITEM_PROPERTIES.add("contentclass");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Set<String> getItemProperties() {
|
protected Set<String> getItemProperties() {
|
||||||
|
Loading…
Reference in New Issue
Block a user