diff options
Take value data type of event start into account in iCal import/export
The patch derives the item type (appointment or event) from the DTSTART
value type. It is then used to perform an extended check of date/time
values and reject non-conformant import files (like those reported in
Github issues #81, (calcurse) events.
The patch includes parsing and code corrections and minor refactoring.
Background:
Ical events are of two types, in calcurse called appointments and
events. RFC 5545 has no distinguishing names for them, but describes
them in section 3.6.1. The event type is derived from the value type of
the DTSTART property. The value type may be either DATE-TIME
(appointment) or DATE (event). If not specified by a VALUE property
parameter in DTSTART, the default value type is DATE-TIME. The value
type must be set explicitly to DATE to get an event. Other properties
and rrule parts must agree with the DTSTART value type (DTEND, DURATION,
EXDATE and UNTIL).
Previously the type of an imported event was derived from the format of
the DTSTART value. The DTSTART value type was not taken into account
when importing, and not specified for recurring events when exporting
(commit 0114289 solved it for events, see GitHub PR #97).
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test%2525252525252525252525253fid%2525252525252525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%25252525252525252525253fid%25252525252525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78&id2%25252525252525252525253dfabacecd16eb62ff94dfa8955862852a410e3524%252525252525252525253fid%252525252525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78&id2%252525252525252525253dfabacecd16eb62ff94dfa8955862852a410e3524%2525252525252525253fid%2525252525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78&id2%2525252525252525253dfabacecd16eb62ff94dfa8955862852a410e3524%25252525252525253fid%25252525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%252525252525253fid%252525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78&id2%252525252525253dfabacecd16eb62ff94dfa8955862852a410e3524%2525252525253fid%2525252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%25252525253fid%25252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%252525253fid%252525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%2525253fid%2525253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%25253fid%25253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%253fid%253dbd238bfd7c443fd974f5b7edd6c1abc0349bfa78%3fid%3dfabacecd16eb62ff94dfa8955862852a410e3524?id=fabacecd16eb62ff94dfa8955862852a410e3524')
0 files changed, 0 insertions, 0 deletions