mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: do not try to get ICS content from tasks
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1760 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
66f1237c49
commit
e9e16b4567
@ -2224,6 +2224,11 @@ public abstract class ExchangeSession {
|
||||
protected byte[] getICS(InputStream mimeInputStream) throws IOException, MessagingException {
|
||||
byte[] result;
|
||||
MimeMessage mimeMessage = new MimeMessage(null, mimeInputStream);
|
||||
String[] contentClass = mimeMessage.getHeader("Content-class");
|
||||
// task item, return null
|
||||
if (contentClass != null && contentClass.length > 0 && "urn:content-classes:task".equals(contentClass[0])) {
|
||||
return null;
|
||||
}
|
||||
Object mimeBody = mimeMessage.getContent();
|
||||
MimePart bodyPart = null;
|
||||
if (mimeBody instanceof MimeMultipart) {
|
||||
|
@ -64,6 +64,8 @@
|
||||
(GMT-04.00)\ Caracas/La\ Paz=America/Caracas
|
||||
(GMT-04.00)\ Santiago=America/Santiago
|
||||
(GMT-05.00)\ Bogota/Lima=America/Lima
|
||||
(GMT-05.00)\ Bogota/Lima/Quito=America/Lima
|
||||
SA\ Pacific\ Standard\ Time=America/Lima
|
||||
(GMT-05.00)\ Eastern\ Time\ (US\ &\ Canada)=America/New_York
|
||||
(GMT-05.00)\ Indiana\ (East)=America/Indiana/Knox
|
||||
(GMT-06.00)\ Central\ America=America/Chicago
|
||||
|
Loading…
Reference in New Issue
Block a user