insert_event #1
@ -25,6 +25,9 @@ DTSTART;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
|
||||
DTEND;TZID=/freeassociation.sourceforge.net/Europe/Berlin:
|
||||
20230914T040000
|
||||
|
||||
SEQUENCE is the number of times the event was modified.
|
||||
Evolution sets this to 2 after it has been generated.
|
||||
|
||||
Appointments include the continent and city of the used time zone.
|
||||
|
||||
"DESCRIPTION:" is an optional field.
|
||||
|
@ -62,7 +62,18 @@ void insert_event(char *file_name) {
|
||||
write(myfd, "\r\n", strlen("\r\n"));
|
||||
write(myfd, dtstart_buffer, strlen(dtstart_buffer));
|
||||
write(myfd, dtend_buffer, strlen(dtend_buffer));
|
||||
write(myfd, "SEQUENCE:2\r\n", strlen("SEQUENCE:2\r\n"));
|
||||
write(myfd, summary_buf, strlen(summary_buf));
|
||||
write(myfd, "TRANSP:OPAQUE\r\n", strlen("TRANSP:OPAQUE\r\n"));
|
||||
write(myfd, "CLASS:PUBLIC\r\n", strlen("CLASS:PUBLIC\r\n"));
|
||||
write(myfd, "CREATED:", strlen("CREATED:"));
|
||||
write(myfd, dtstamp, strlen(dtstamp));
|
||||
write(myfd, "\r\n", strlen("\r\n"));
|
||||
write(myfd, "LAST-MODIFIED:", strlen("LAST-MODIFIED:"));
|
||||
write(myfd, dtstamp, strlen(dtstamp));
|
||||
write(myfd, "\r\n", strlen("\r\n"));
|
||||
write(myfd, "END:VEVENT\r\n", strlen("END:VEVENT\r\n"));
|
||||
|
||||
write(myfd, "END:VCALENDAR\r\n", strlen("END:VCALENDAR\r\n"));
|
||||
|
||||
close(myfd);
|
||||
|
Loading…
Reference in New Issue
Block a user