mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -05:00
Caldav: allows mixed case contentType in event MIME message (fix Unable to get event error)
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1088 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
65dfbeae21
commit
9284a924e5
@ -1867,8 +1867,12 @@ public abstract class ExchangeSession {
|
|||||||
return "text/calendar;charset=UTF-8";
|
return "text/calendar;charset=UTF-8";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected static final String TEXT_CALENDAR = "text/calendar";
|
||||||
|
protected static final String APPLICATION_ICS = "application/ics";
|
||||||
|
|
||||||
protected boolean isCalendarContentType(String contentType) {
|
protected boolean isCalendarContentType(String contentType) {
|
||||||
return contentType.startsWith("text/calendar") || contentType.startsWith("application/ics");
|
return TEXT_CALENDAR.regionMatches(true, 0, contentType, 0, TEXT_CALENDAR.length()) ||
|
||||||
|
APPLICATION_ICS.regionMatches(true, 0, contentType, 0, APPLICATION_ICS.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected MimePart getCalendarMimePart(MimeMultipart multiPart) throws IOException, MessagingException {
|
protected MimePart getCalendarMimePart(MimeMultipart multiPart) throws IOException, MessagingException {
|
||||||
|
Loading…
Reference in New Issue
Block a user