carddav: add addressbook-supprted-address-data to server

This commit is contained in:
Simon Ser
2020-01-19 15:00:15 +01:00
parent edfc2804b5
commit 238e72b73e
2 changed files with 27 additions and 6 deletions

View File

@@ -211,7 +211,15 @@ func (b *backend) propfindAddressBook(propfind *internal.Propfind, ab *AddressBo
addressBookDescriptionName: func(*internal.RawXMLValue) (interface{}, error) {
return &addressbookDescription{Description: ab.Description}, nil
},
// TODO: addressbook-supported-address-data, addressbook-max-resource-size, addressbook-home-set
addressBookSupportedAddressData: func(*internal.RawXMLValue) (interface{}, error) {
return &addressbookSupportedAddressData{
Types: []addressDataType{
{ContentType: vcard.MIMEType, Version: "3.0"},
{ContentType: vcard.MIMEType, Version: "4.0"},
},
}, nil
},
// TODO: addressbook-max-resource-size, addressbook-home-set
}
return internal.NewPropfindResponse("/", propfind, props)