mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-13 22:48:07 -05:00
Caldav: Fix regression on public calendar folders linked to multiple calendar support for iCal
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@824 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
8aec8d557a
commit
942e80f2c0
@ -548,10 +548,12 @@ public class CaldavConnection extends AbstractConnection {
|
||||
List<ExchangeSession.Event> events = session.getAllEvents(folderPath);
|
||||
DavGatewayTray.debug(new BundleMessage("LOG_FOUND_CALENDAR_EVENTS", events.size()));
|
||||
appendEventsResponses(response, request, events);
|
||||
// Send sub folders for multi-calendar support under iCal
|
||||
List<ExchangeSession.Folder> folderList = session.getSubCalendarFolders(folderPath, false);
|
||||
for (ExchangeSession.Folder folder : folderList) {
|
||||
appendCalendar(response, request, folder.folderPath.substring(folder.folderPath.indexOf('/') + 1));
|
||||
// Send sub folders for multi-calendar support under iCal, except for public folders
|
||||
if (!folderPath.startsWith("/public")) {
|
||||
List<ExchangeSession.Folder> folderList = session.getSubCalendarFolders(folderPath, false);
|
||||
for (ExchangeSession.Folder folder : folderList) {
|
||||
appendCalendar(response, request, folder.folderPath.substring(folder.folderPath.indexOf('/') + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
response.endMultistatus();
|
||||
|
Loading…
Reference in New Issue
Block a user