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:
mguessan 2014-10-30 22:32:03 +00:00
parent 411caf611e
commit addbd73ff7
1 changed files with 12 additions and 7 deletions

View File

@ -771,7 +771,11 @@ public class CaldavConnection extends AbstractConnection {
events = session.getEventMessages(request.getFolderPath());
appendEventsResponses(response, request, events);
} 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) {
events = session.searchTasksOnly(request.getFolderPath());
} else if (request.vEventOnly) {
@ -781,6 +785,7 @@ public class CaldavConnection extends AbstractConnection {
}
appendEventsResponses(response, request, events);
}
}
// send not found events errors
for (String href : notFound) {