agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit 3c89cb5eb3007192cebb56b4a90df3e54fbdc4d2
parent 7bbb45af05a68502dfb22358f1e736db4557da44
Author: Marc Coquand <marc@coquand.email>
Date:   Fri, 27 Jun 2025 19:46:05 +0100

Set journals to private by default

In the future it will be possible to mark entries as
public/private/confidential, but for now it's not possible so
we default to privacy.

References: https://todo.sr.ht/~marcc/agendafs/16

Diffstat:
Mjournal_entry.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/journal_entry.c b/journal_entry.c
@@ -893,6 +893,9 @@ create_vjournal_entry(char *summary)
 
 	icalcomponent_add_property(journal, icalproperty_new_uid(id));
 
+	icalcomponent_add_property(journal,
+				   icalproperty_new_class(ICAL_CLASS_PRIVATE));
+
 	icalcomponent_add_property(
 	    journal, icalproperty_new_dtstamp(icaltime_current_time_with_zone(
 			 icaltimezone_get_utc_timezone())));