mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -05:00
Caldav: check Depth before search
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1731 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
d5e669f7de
commit
a5d856f819
@ -608,12 +608,14 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
List<ExchangeSession.Contact> contacts = null;
|
List<ExchangeSession.Contact> contacts = null;
|
||||||
List<ExchangeSession.Event> events = null;
|
List<ExchangeSession.Event> events = null;
|
||||||
List<ExchangeSession.Folder> folderList = null;
|
List<ExchangeSession.Folder> folderList = null;
|
||||||
if (folder.isContact()) {
|
if (request.getDepth() == 1) {
|
||||||
contacts = session.getAllContacts(folderPath);
|
if (folder.isContact()) {
|
||||||
} else if (folder.isCalendar()) {
|
contacts = session.getAllContacts(folderPath);
|
||||||
events = session.getAllEvents(folderPath);
|
} else if (folder.isCalendar()) {
|
||||||
if (!folderPath.startsWith("/public")) {
|
events = session.getAllEvents(folderPath);
|
||||||
folderList = session.getSubCalendarFolders(folderPath, false);
|
if (!folderPath.startsWith("/public")) {
|
||||||
|
folderList = session.getSubCalendarFolders(folderPath, false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user