Write an archive's calendars and address books into any CalDAV or
CardDAV server. The home is found from the signed-in principal (the
URL can be the server root), collections are matched by display name
or made with MKCALENDAR / extended MKCOL, and each event or card is
written with If-None-Match: * when new, or under If-Match on its etag
when it differs. The comparison ignores folding, parameter order and
case, PRODID, DTSTAMP and REV, and compares N and ADR on their vCard 3
parts, so a second run writes nothing on Radicale and Baikal. Refused
items are counted and the run goes on; nothing is deleted.
Live round trips against Radicale and Baikal, a mock test with an
in-memory DAV server, and the Baikal rig's digest hashes fixed to
match its test password.