lpil / icalendar

🗓️ A small library for reading and writing ICalendar files.
MIT License
103 stars 56 forks source link

When VALARM is present, description is taken from it instead the one in VEVENT #26

Open benjamin79 opened 5 years ago

benjamin79 commented 5 years ago

BEGIN:VEVENT ....... \r\nDESCRIPTION:Bodytext ..... BEGIN:VALARM\r\nDESCRIPTION:REMINDER ....

leads to the description "REMINDER" instead of "Bodytext"

ericdude4 commented 4 years ago

@benjamin79 can you provide me an example of this happening in a real ICS feed?

benjamin79 commented 4 years ago

No, we don´t use elixir anymore.

lpil commented 4 years ago

I'll close this until we have a way to reproduce the problem. Thanks

JamesS-M commented 2 years ago

I do have an example of this happening in a real ICS feed. This is one of the events from the feed (PII removed):

BEGIN:VEVENT
DTSTART:20220318T203000Z
DTEND:20220318T213000Z
DTSTAMP:20220319T175558Z
ORGANIZER;CN=test@gmail.com:mailto:test@gmail.com
UID:513fb5ti9kt1h8ghha21ihi0sf@google.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=test@test.com;X-NUM-GUESTS=0:mailto:test@test.com
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=ACCEPTED;CN=test1@test.com;X-NUM-GUESTS=0:mailto:test1@test.com
X-GOOGLE-CONFERENCE:https://meet.google.com/aofhaeof
CREATED:20220318T171605Z
DESCRIPTION:This event has a video call.\nJoin: https://meet.google.com/aofhaeof
LAST-MODIFIED:20220318T171643Z
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Website Review
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:EMAIL
DESCRIPTION:This is an event reminder
SUMMARY:Alarm notification
ATTENDEE:mailto:test@test.com
TRIGGER:-P0DT1H0M0S
END:VALARM
BEGIN:VALARM
ACTION:EMAIL
DESCRIPTION:This is an event reminder
SUMMARY:Alarm notification
ATTENDEE:mailto:test@test.com
TRIGGER:-P1D
END:VALARM
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:This is an event reminder
TRIGGER:-P0DT0H10M0S
END:VALARM
END:VEVENT

Which creates an event with:

summary: "Alarm Notification",
description: "This is an event reminder"
lpil commented 2 years ago

Thank you