Publishing contacts
Calendar feeds
A rota or another calendar published as an iCalendar file, read on a schedule into every recipient's calendar.
A calendar feed is a calendar some other tool publishes as an iCalendar file — an .ics address — such as an on-call
rota from a planning tool, a shift plan, or a team calendar shared from Google or Outlook. ContactMesh reads it on a
schedule and a calendar publication delivers its events into every recipient’s
calendar, beside holidays and your own events.
Making one
Section titled “Making one”Calendars → Sources → New source → Feed:
| Field | What it is |
|---|---|
| Name | What the source is called here. |
| Address | The calendar’s https:// or webcal:// address, as the other tool gives it. |
| Sign-in | None for most published calendars, whose address is their key; Basic with a User and a password, or Token with a bearer token. |
| Secret | The password or the token. |
| Every | How often it is read, in minutes: from a quarter of an hour to a day, an hour by default. |
| CA | Only for a server with a certificate of its own CA: that CA’s certificate in PEM. |
The feed is read at once, so its events are on its page before a publication reads it. On a publication’s Sources tab, Add feed adds it; its row’s Filter takes only the events whose subject contains a text, and leaves out those that contain another — the on-call shifts of a plan that holds everybody’s shifts, say.
Its address is a secret
Section titled “Its address is a secret”Many published calendars carry a token in their address: whoever has it reads the calendar. So the address is kept as a credential:
- it is stored sealed with the deployment’s key, as a database source’s password is, with the secret;
- once saved, the dashboard shows only its scheme and host —
https://calendar.example.com/…— and never the rest; - it is in no log line, no audit entry, no fault and not in the support bundle.
Change address, behind ”…” on the feed’s page, takes a new one, typed whole; Edit feed, beside it, changes its sign-in, its interval and its CA, and keeps the secret unless you type a new one. Pointing a feed at another address is the tenant’s, not a role’s given on the one source.
How it is read
Section titled “How it is read”- HTTPS only, to an address outside the deployment: this machine, the network’s link-local addresses and a cloud’s metadata service are refused, and in the hosted product private ranges too. Every address is checked as it is connected to, also after a redirect. At most three redirects are followed, never from HTTPS to HTTP, and a feed that signs in is never redirected to another host.
- 30 seconds and 5 MB at most per read.
- Only what changed: the next read sends what the last answer said of the file (
ETag,Last-Modified), and a file that has not changed is not read again. The first read of each day is whole, so a series’ next occurrences arrive. - Recurrences become single events, each in every calendar: a series’ rule, its added dates and its exceptions, and an occurrence the file moved or changed, which keeps its place rather than being removed and added. A cancelled occurrence is no event.
- Times keep their zone. A time in a zone — an IANA zone, a Windows zone, or a time zone the file describes itself — is that time in that zone in every calendar. A time without a zone is read in each publication’s own zone. A time in UTC is shown in each publication’s zone.
- The window: the feed is read over the days its publications hold, the widest back and ahead.
- A rota’s person — the event’s attendee, or its organizer — is kept beside the event so an erasure can find them, and shown in the feed’s Person column. Nobody is ever delivered as an attendee: nobody gets an invitation.
- What an event says it shows as is kept too: its
X-MICROSOFT-CDO-BUSYSTATUSwhere it has one —FREE,TENTATIVE,BUSY,OOF(Away) orWORKINGELSEWHERE— else itsTRANSP,TRANSPARENTas Free andOPAQUEas Busy. A publication delivers it where the feed’s row says As the event says; otherwise the row’s Show as or the publication’s applies.
When a read fails
Section titled “When a read fails”The feed keeps every event it had, and its page says why under Read failed: the address could not be reached, the answer was no calendar file, the file was too large, the certificate is not trusted, the sign-in was refused, or the feed holds more than the 2,000 events a calendar may hold. The bell and the monitoring count it as a failing source. Read now reads it again.
An empty file removes nothing: a feed that answers nothing is more often broken than cleared.
Removals held
Section titled “Removals held”A read that would remove more of the feed’s events at once than the tenant’s deletion guard lets through — by
default more than 10 and a fifth of them — removes none. The feed’s page says Removals held with the events,
and Approve removes exactly that set, once, from every calendar: deletions.approve, with a recent proof. A set
that changes meanwhile has to be approved again; an event the feed holds again comes back at its next read.
Erasure
Section titled “Erasure”Erasing a person reaches a feed: the events that name them — by their address or name as the rota’s person, or by their name in the subject or location — are taken out of every calendar, and the feed’s later reads keep them out.