使用 iCalendar 文件更新 Outlook 2007 中的事件 [英] Update an event in Outlook 2007 with an iCalendar file

查看:18
本文介绍了使用 iCalendar 文件更新 Outlook 2007 中的事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前有一个帖子讨论过这个问题,并提示答案,但我无法让它发挥作用.

There is a previous thread with this question, and hints at an answer, but I could not get it to work.

我有一个 ICS 文件.它验证.它看起来像这样:

I have an ICS file. It validates. It looks like this:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//WA//FRWEB//EN
BEGIN:VEVENT
UID:FRICAL201
SEQUENCE:0
DTSTAMP:20081108T151809Z
DTSTART:20081109T121200
SUMMARY:11/9/2008 12:12:00 PM TRIP FROM JFK AIRPORT (JFK)
LOCATION:JFK AIRPORT (JFK)
END:VEVENT
END:VCALENDAR

我双击它,它完美地进入了 Outlook 2007.然后,我双击另一个如下所示的 ICS 文件:

I double-click it and it goes into Outlook 2007 perfectly. Then, I double-click another ICS file that looks like this:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//WA//FRWEB//EN
BEGIN:VEVENT
METHOD:REQUEST
UID:FRICAL201
SEQUENCE:1
DTSTAMP:20081108T161809Z
DTSTART:20081109T121300
SUMMARY:11/9/2008 12:13:00 PM TRIP FROM JFK AIRPORT (JFK)
LOCATION:JFK AIRPORT (JFK)
END:VEVENT
END:VCALENDAR

正如 在 rfc 中解释的,UID 是相同的并且序列号更大,所以我希望 Outlook 更新我以前的事件条目,但它所做的只是插入第二个.

As explained in the rfc, the UID is the same and the sequence number is one greater, so I expect outlook to update my previous event entry, but all it does is insert a second one.

如何制定 ICS 文件,以便 Outlook 知道更新事件?我上面引用的线程中的原始海报说他让它用 METHOD 和 ORGANIZER 做出响应,但根据我的经验, METHOD 没有效果,并且 ORGANIZER 会导致 Outlook 想要将事件通过电子邮件发送给某人的不良行为.我只是想让它更新日历.

How can I formulate the ICS file so that Outlook knows to update the event? The original poster in the thread I referenced above said he got it to respond with METHOD and ORGANIZER but in my experience METHOD has no effect and ORGANIZER causes undesirable behavior where Outlook wants to email the event to someone. I just want it to update the calendar.

推荐答案

我找到了发起原始线程的人 Tom Carter.他有一个工作示例,请求后取消.我错的是我的方法在我的 VEVENT 里面,而它应该在外面.所以这是一个有效的更新!

I got a hold of Tom Carter, the guy who started the original thread. He had a working example with a request followed by a cancellation. What I had wrong was my METHOD was inside my VEVENT when it should have been outside. So here is a working update!

原文:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//WA//FRWEB//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:FRICAL201
SEQUENCE:0
DTSTAMP:20081108T151809Z
ORGANIZER:donotreply@test.com
DTSTART:20081109T121200
SUMMARY:11/9/2008 12:12:00 PM TRIP FROM JFK AIRPORT (JFK)
LOCATION:JFK AIRPORT (JFK)
END:VEVENT
END:VCALENDAR

更新:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//WA//FRWEB//EN
METHOD:REQUEST
BEGIN:VEVENT
UID:FRICAL201
SEQUENCE:1
DTSTAMP:20081108T161809Z
ORGANIZER:donotreply@test.com
DTSTART:20081109T121300
SUMMARY:11/9/2008 12:13:00 PM TRIP FROM JFK AIRPORT (JFK)
LOCATION:JFK AIRPORT (JFK)
END:VEVENT
END:VCALENDAR

我所做的只是添加请求方法(在正确的位置!)和一个组织者.

All I did was add the request method (in the correct spot!), and an organizer.

这篇关于使用 iCalendar 文件更新 Outlook 2007 中的事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆