Thunderbird + Lightning正在不恰当地呈现一个ics邀请

时间:2017-01-24 12:07:18

标签: email icalendar thunderbird lightning

使用sabre/vobject库我正在创建一个像这样的ics文件:

phpmailer

然后使用Return-Path: <XXXXXXXXXXXXXXXX> Received: from deliver ([unix socket]) by mail (Cyrus v2.3.16-Fedora-RPM-2.3.16-13.el6_6) with LMTPA; Tue, 24 Jan 2017 12:48:10 +0200 X-Sieve: CMU Sieve 2.3 Received: from [XXX.XXX.XXX.XXX] (XXXXXXXXXXXXXX [XXX.XXX.XXX.XXX (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by XXXXXXXXXXXXXX (Postfix) with ESMTPSA id 6F18C1BE0305 for <XXXXXXXXXXXXXX>; Tue, 24 Jan 2017 12:48:10 +0200 (EET) Subject: Fwd: Event invitation: testev2 To: "XXXXXXXX" <XXXXXXXXXXXXXX> From: XXXXXXXXXXXXXX <XXXXXXXXXXXXXX> X-Forwarded-Message-Id: Message-ID: <bac7749e-9699-1b50-9de5-27a510c663a4@XXXXXXXX> Date: Tue, 24 Jan 2017 12:48:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------79DD2A1D49F1A57579125B45" This is a multi-part message in MIME format. --------------79DD2A1D49F1A57579125B45 Content-Type: multipart/alternative; boundary="------------72E56459CD6D794D0DF5AC4B" --------------72E56459CD6D794D0DF5AC4B Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit > ------- Forwarded Message -------- Forward message content > --------------72E56459CD6D794D0DF5AC4B > Content-Type: text/html; charset=windows-1252 > Content-Transfer-Encoding: 8bit > HTML Content > --------------72E56459CD6D794D0DF5AC4B-- > > --------------79DD2A1D49F1A57579125B45 > Content-Type: text/calendar; > name="invitation.ics" > Content-Transfer-Encoding: 7bit > Content-Disposition: attachment; > filename="invitation.ics" > ICS Content > --------------79DD2A1D49F1A57579125B45-- ,我将生成的文件附加到电子邮件中,并将其发送给参与该事件的用户。使用thunderbird(使用Lightning扩展 - 默认情况下)的用户会收到以下格式的电子邮件:

enter image description here

正如您在图片中看到的那样,ics文件在电子邮件底部的表格中进行了解析和呈现。但是表标题(标记为红色的标题)未显示正确的信息。测试用户还没有确定他/她的存在,如果他确实存在,那么ics文件不提供任何关于它的信息。

我是否错误地格式化了ics文件?

它是雷鸟/闪电的已知错误吗?

更新 邮件的电子邮件标题:

if (isset($email)) {
    if (is_array($email)) {
        //your code here
    }
}

1 个答案:

答案 0 :(得分:0)

您应该使ics附件的Content-Type类似于:

hi SpellBad term=reverse ctermbg=darkgreen

<com.viewpagerindicator.CirclePageIndicator android:id="@+id/indicator" android:layout_width="fill_parent" android:layout_height="wrap_content" app:snap="true"/> 选项是神奇的词。我不完全确定这是有效的,但它至少更接近规范。如果它不起作用,我很乐意更新我的答案。