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

查看:53
本文介绍了使用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的支持,他是启动原始线程的人.他有一个可行的示例,其中有一个请求,然后取消了该请求.我不对的是,我的METHOD应该在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

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

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

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

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