mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-21 06:58:51 -05:00
Caldav: fix #98 Support of Contacts in CardDav REPORT
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2323 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
411caf611e
commit
addbd73ff7
@ -771,15 +771,20 @@ public class CaldavConnection extends AbstractConnection {
|
||||
events = session.getEventMessages(request.getFolderPath());
|
||||
appendEventsResponses(response, request, events);
|
||||
} else {
|
||||
// TODO: handle contacts ?
|
||||
if (request.vTodoOnly) {
|
||||
events = session.searchTasksOnly(request.getFolderPath());
|
||||
} else if (request.vEventOnly) {
|
||||
events = session.searchEventsOnly(request.getFolderPath(), request.timeRangeStart, request.timeRangeEnd);
|
||||
ExchangeSession.Folder folder = session.getFolder(folderPath);
|
||||
if (folder.isContact()) {
|
||||
List<ExchangeSession.Contact> contacts = session.getAllContacts(folderPath);
|
||||
appendContactsResponses(response, request, contacts);
|
||||
} else {
|
||||
events = session.searchEvents(request.getFolderPath(), request.timeRangeStart, request.timeRangeEnd);
|
||||
if (request.vTodoOnly) {
|
||||
events = session.searchTasksOnly(request.getFolderPath());
|
||||
} else if (request.vEventOnly) {
|
||||
events = session.searchEventsOnly(request.getFolderPath(), request.timeRangeStart, request.timeRangeEnd);
|
||||
} else {
|
||||
events = session.searchEvents(request.getFolderPath(), request.timeRangeStart, request.timeRangeEnd);
|
||||
}
|
||||
appendEventsResponses(response, request, events);
|
||||
}
|
||||
appendEventsResponses(response, request, events);
|
||||
}
|
||||
|
||||
// send not found events errors
|
||||
|
Loading…
Reference in New Issue
Block a user