使用 ICS 文件创建新日历的多个事件

Multiple events creating new calendar using ICS file

我想使用 .ics 文件发送多个事件。我创建了一个包含多个事件的文件,它只在我的日历中显示一个事件而不是所有事件。

想出了从 ICS 文件中删除 X-MS-OLK-FORCEINSPECTOROPEN: TRUE 的想法,我只是照着做,但它总是创建一个新的日历。我想将其导入默认日历。请帮助并纠正我在这里做错的地方。我已经提到了下面的代码。 提前致谢。

------Meeting Booking----4e358482ef88327c611cde19d519ac3e
Content-Type: text/calendar;Content-Disposition: inline;filename="meeting.ics";method=REQUEST;
Content-Transfer-Encoding: 8bit

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 16.0 MIMEDIR//EN
VERSION:2.0
METHOD:REQUEST
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VTIMEZONE
TZID:Asia/kolkata
BEGIN:STANDARD
DTSTART:20091101T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=1SU;BYMONTH=11
TZOFFSETFROM:+0530
TZOFFSETTO:+0530
TZNAME:IST
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:20090301T020000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=2SU;BYMONTH=3
TZOFFSETFROM:+0530
TZOFFSETTO:+0530
TZNAME:IST
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
ORGANIZER;CN="****":MAILTO:****
ATTENDEE;CN="Kamal";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:****
X-MS-OLK-SENDER;CN="Kamal":MAILTO:****
LAST-MODIFIED:20190625T45409
UID:20190626T1000004255310@****
DTSTAMP:20190625T45409
DTSTART;TZID="Asia/kolkata":20190626T100000
DTEND;TZID="Asia/kolkata":20190626T110000
TRANSP:OPAQUE
SEQUENCE:1
SUMMARY:My Test Meeting Setup
LOCATION:Joes House
DESCRIPTION:My Awesome Meeting Description
X-ALT-DESC;FMTTYPE=text/html:<html><body><a href="http://bing.com">Bing</a></body></html>
CLASS:PUBLIC
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
PRIORITY:5
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
BEGIN:VEVENT
ORGANIZER;CN="****":MAILTO:****
ATTENDEE;CN="Kamal";ROLE=REQ-PARTICIPANT;RSVP=TRUE:MAILTO:****
X-MS-OLK-SENDER;CN="Kamal":MAILTO:****
LAST-MODIFIED:20190625T45409
UID:20190626T140000916705683@****
DTSTAMP:20190625T45409
DTSTART;TZID="Asia/kolkata":20190626T140000
DTEND;TZID="Asia/kolkata":20190626T150000
TRANSP:OPAQUE
SEQUENCE:1
SUMMARY:My Test Meeting Setup 1
LOCATION:Joes House 1
DESCRIPTION:My Awesome Meeting Description 1
X-ALT-DESC;FMTTYPE=text/html:<html><body><a href="http://bing.com">Bing</a></body></html>
CLASS:PUBLIC
X-MICROSOFT-CDO-BUSYSTATUS:BUSY
PRIORITY:5
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

iTIP 协议不允许这样做。参见 https://www.rfc-editor.org/rfc/rfc5546#section-3.2.2

For the "REQUEST" method, multiple "VEVENT" components in a single iCalendar object are only permitted for components with the same "UID" property.

换句话说,您必须发送多封电子邮件。