mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-21 23:18:49 -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,7 +771,11 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
events = session.getEventMessages(request.getFolderPath());
|
events = session.getEventMessages(request.getFolderPath());
|
||||||
appendEventsResponses(response, request, events);
|
appendEventsResponses(response, request, events);
|
||||||
} else {
|
} else {
|
||||||
// TODO: handle contacts ?
|
ExchangeSession.Folder folder = session.getFolder(folderPath);
|
||||||
|
if (folder.isContact()) {
|
||||||
|
List<ExchangeSession.Contact> contacts = session.getAllContacts(folderPath);
|
||||||
|
appendContactsResponses(response, request, contacts);
|
||||||
|
} else {
|
||||||
if (request.vTodoOnly) {
|
if (request.vTodoOnly) {
|
||||||
events = session.searchTasksOnly(request.getFolderPath());
|
events = session.searchTasksOnly(request.getFolderPath());
|
||||||
} else if (request.vEventOnly) {
|
} else if (request.vEventOnly) {
|
||||||
@ -781,6 +785,7 @@ public class CaldavConnection extends AbstractConnection {
|
|||||||
}
|
}
|
||||||
appendEventsResponses(response, request, events);
|
appendEventsResponses(response, request, events);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// send not found events errors
|
// send not found events errors
|
||||||
for (String href : notFound) {
|
for (String href : notFound) {
|
||||||
|
Loading…
Reference in New Issue
Block a user