diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-08-22 13:16:49 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-08-22 13:16:49 -0400 |
| commit | 8a3d2c99bff60cb775ebc42516c0c3912d54ba3d (patch) | |
| tree | fd136a3b7927146763cdc11e6be07c71f92bb92c /pim/test/cal/work.ics | |
| parent | 9aacce8b3b54060d0037eca897856d7273e6e5e8 (diff) | |
pim: personal information management, starting with a calendar
A calendar as a file tree, and tools that only know the tree:
events/date/yyyy/mm/dd/hhmm-summary as lived
events/uuid/<uid>/ as stored
ctl query alarm changed
lib/cal owns all of that. A backend supplies events and, where its
protocol allows, takes changes back -- six methods. cmd/icalfs is the
first: it reads .ics files from a directory and nothing else, because
fetching is rc/fetch's job and hget already exists. That keeps
net/http out of the binary and makes a subscribed calendar and a local
one the same thing.
The tools are rc on purpose. If the tree needs a compiled program to be
useful, the tree is the wrong shape. Three things were added to the
tree because the rc port needed them: a path from an occurrence to its
event, epoch seconds beside RFC3339, and a numeric slot for all-day
events so test(1) can compare it.
ctl reports caps, so a tool can say "read only" instead of trying and
failing. A published .ics is read only: nowhere to PUT, and no
METHOD:REQUEST to reply to. CalDAV would be read write rsvp schedule,
and that is the next backend.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'pim/test/cal/work.ics')
| -rw-r--r-- | pim/test/cal/work.ics | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pim/test/cal/work.ics b/pim/test/cal/work.ics new file mode 100644 index 0000000..ee7b152 --- /dev/null +++ b/pim/test/cal/work.ics @@ -0,0 +1,40 @@ +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:-//ical/fs test//EN +BEGIN:VEVENT +UID:standup@test +DTSTAMP:20260101T000000Z +DTSTART:20260819T130000Z +DTEND:20260819T131500Z +SUMMARY:Daily standup +LOCATION:the wire +RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR;COUNT=20 +BEGIN:VALARM +ACTION:DISPLAY +TRIGGER:-PT5M +DESCRIPTION:standup +END:VALARM +END:VEVENT +BEGIN:VEVENT +UID:retro@test +DTSTAMP:20260101T000000Z +DTSTART:20260821T150000Z +DTEND:20260821T160000Z +SUMMARY:Retro\, with snacks +RRULE:FREQ=MONTHLY;BYDAY=-1FR;COUNT=6 +END:VEVENT +BEGIN:VEVENT +UID:holiday@test +DTSTAMP:20260101T000000Z +DTSTART;VALUE=DATE:20260824 +SUMMARY:Out of office +END:VEVENT +BEGIN:VEVENT +UID:oneoff@test +DTSTAMP:20260101T000000Z +DTSTART:20260820T183000Z +DTEND:20260820T193000Z +SUMMARY:Dinner +LOCATION:somewhere with a semicolon\; here +END:VEVENT +END:VCALENDAR |
