Accept VLIST items (fixes #661)

Custom format used by SOGo Connector to store lists of contacts
This commit is contained in:
Unrud 2017-07-21 16:12:19 +02:00
parent 4f831de006
commit 4533f76df9

View File

@ -167,6 +167,9 @@ def check_and_sanitize_item(vobject_item, is_collection=False, uid=None):
vobject_item.add("UID").value = uid or random_uuid4() vobject_item.add("UID").value = uid or random_uuid4()
elif not object_uid: elif not object_uid:
vobject_item.uid.value = uid or random_uuid4() vobject_item.uid.value = uid or random_uuid4()
elif vobject_item.name == "VLIST":
# Custom format used by SOGo Connector to store lists of contacts
pass
else: else:
raise ValueError("Unknown item type: %r" % vobject_item.name) raise ValueError("Unknown item type: %r" % vobject_item.name)