We often receive event invites via email. These emails contain event details in the body and also a .ics file as an attachment. Some of these invites should be automatically added to a calendar. I already managed to identify the relevant events and automatically respond to them, letting the sender know we accept the invitation. The body's data is sufficient to identify relevant events, but they lack the details such as start and end times. In addition to accepting the invites, we need to add the event to the calendar or forget about the event. I did not manage to create a calendar entry with the provided data. How can I add a .ics file to a calendar?