GMail不显示iCalendar邀请的X-ALT-DESC参数值

时间:2016-05-05 23:20:11

标签: java gmail icalendar vcalendar

我们需要告知客户即将到来的约会。因此,我向他们发送iCalendar邀请,以便在他们的日历中创建约会。 iCalendar邀请的示例如下所示。

BEGIN:VCALENDAR
PRODID:-//NONSGML Scheduler//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
TRANSP:OPAQUE    
BEGIN:VEVENT
DTSTAMP:20160504T235656Z
DTSTART;TZID=America/New_York:20160509T090000
DTEND;TZID=America/New_York:20160509T100000
SUMMARY:Appointment with Terrance
CREATED:20160504T235655Z
LAST-MODIFIED:20160504T235655Z
DTSTAMP:20160504T235656Z
UID:appointment-101@gmail.com
TZID:America/New_York
SEQUENCE:0
LOCATION:Sunset blvd.\, Brooklyn\, NY 11203
ORGANIZER;CN=Barrimore:MAILTO:mailer@gmail.com
ATTENDEE;CN=Barrimore;ROLE=REQ-PARTICIPANT;RSVP=FALSE;PARTSTAT=ACCEPTED;CUTYPE=INDIVIDUAL:mailto:aleh......@gmail.com
STATUS:CONFIRMED
X-ALT-DESC;FMTTYPE=text/html:<html><body>Barrimore,<br><br>An appointment with Terrance was recently created or updated by you or your staff.<br><br>You can see your updated calendar by signing in at: <a href="https://localhost">https://localhost</a>.<br><br>For help signing in or general support issues, please email support@gmail.com.<br><br>Thank you.</body></html>
END:VEVENT
END:VCALENDAR

所以问题是GMail不显示X-ALT-DESC参数的html内容。好奇,Hotmail的一切正常 - 它显示事件面板,其中包含“Accept”,“Ignore”按钮和来自X-ALT-DESC的格式化html消息。 GMail仅显示活动信息面板。

1 个答案:

答案 0 :(得分:0)

X-ALT-DESC是特定于MSFT的扩展程序(请参阅MSND on iCalendar/X-ALT-DESC) 你可以查看RFC进行仔细检查。

鉴于与Microsoft的Hotmail关系,它们支持它是有道理的,并且可能还有一些意义,即为什么Google不支持MSFT专有功能。