我想使用.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
答案 0 :(得分:0)
iTIP协议不允许这样做。参见https://tools.ietf.org/html/rfc5546#section-3.2.2
对于“ REQUEST”方法,单个中包含多个“ VEVENT”组件 iCalendar对象仅适用于具有相同功能的组件 “ UID”属性。
换句话说,您必须发送多封电子邮件。