icalendar

Attaching a file to an iCalendar

强颜欢笑 提交于 2019-12-24 02:09:59
问题 I have iCalendar meeting requests sending correctly via SMTP (using the code below), but when I attempt to attach a file, the file does not appear as part of the iCalendar. When saving out the .ics after opening it in outlook, the whole file data has been stripped out. Here's the code I'm using: System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage(); msg.From = new System.Net.Mail.MailAddress("test1@test.com", "test1"); msg.To.Add(new System.Net.Mail.MailAddress("test2@test.com",

Parsing ICS file with bash

爷,独闯天下 提交于 2019-12-24 00:35:49
问题 This is a google calendar ics file. I download it each time to check whether new play events have been added or changed and I appear on IRC. I need convert a file like this : BEGIN:VEVENT DTSTART:20160612T201000Z DTEND:20160612T211000Z DTSTAMP:20160519T200239Z UID:xxxxxxxxxxxxxxxxxx@google.com CREATED:20160518T153226Z DESCRIPTION: LAST-MODIFIED:20160518T153226Z LOCATION:OCS Choc SEQUENCE:0 STATUS:CONFIRMED SUMMARY:Ash vs Evil Dead Saison 1 Episode 9 & 10 TRANSP:OPAQUE END:VEVENT BEGIN:VEVENT

Produce an iCal appointment and subsequent updates via email but don't offer accept/decline options

微笑、不失礼 提交于 2019-12-24 00:35:34
问题 We are writing a system that has a booking feature, and we are planning to have it send *.ics files via email to attendees so they can easily add appointments to their calendars. The types of events are things like training courses (e.g. 3pm in the boardroom). We've got this working to the point that the system sends the *.ics, and using Gmail and Outlook, the user can accept the appointment which, is then added to their calendar. Sometimes an event changes (e.g. a course is cancelled or

Creating .ICS files, adding to outlook

扶醉桌前 提交于 2019-12-23 10:26:04
问题 I am creating a simple application that will allow users to download .ICS files, and import them into their chosen calendar application/site. I am happy with the creation process, but have a question regarding opening them in outlook. (will be developed in C#, ASP.NET) When I open one, it adds a new calendar, and doesn't add the events to the existing calendar. Is it possible to open, and add to the existing calendar? Example from a generate ICS file below (test data obviously) BEGIN

Importing ICS into Google Calendar with correct timezone

血红的双手。 提交于 2019-12-23 08:54:12
问题 I'm trying to import a simple ics file into Google calendar. However, even though I have the timezone specified, Google calendar still imports the wrong event time. (Although it does say that the wrong time is in the correct timezone.) Here is a sample of my ics file: BEGIN:VCALENDAR BEGIN:VEVENT DESCRIPTION: Test_Description DTEND;TZID=US-Pacific:20140606T180000 DTSTART;TZID=US-Pacific:20140606T170000 LOCATION:Test_Location SUMMARY:Test_Summary UID:20140606T150000@NL END:VEVENT END:VCALENDAR

Applescript to create set iCal events

孤者浪人 提交于 2019-12-23 06:21:18
问题 I use iCal to kept track of my shifts, the event info is the same three standard shift types and I usually copy and paste them as there's no pattern. I'm trying to work out if theres away using Applescript to speed it up. I'd like to input some dates and shift type have Applescript create the events. I tried to see if I could adapt this for each shift type: Reading iCal info from file to make iCal event eg so I just had a list of dates but I couldn't even get the original to run with out

Weekly recurring events in iCalendar

情到浓时终转凉″ 提交于 2019-12-23 05:45:10
问题 I have pasted below my ics file for a recurring event, It is a weekly recurring event, this recurs on monday, tuesday, wednesday. I checked the syntax, It seems to be fine. Is there anything wrong in this. BEGIN:VCALENDAR PRODID;X-RICAL-TZSOURCE=TZINFO:-//com.denhaven2/NONSGML ri_cal gem//EN CALSCALE:GREGORIAN VERSION:2.0 METHOD:REQUEST BEGIN:VEVENT CREATED;VALUE=DATE-TIME:20111106T175719Z DTEND;VALUE=DATE-TIME:20111110T183000Z STATUS:CONFIRMED DTSTART;VALUE=DATE-TIME:20111110T160000Z TRANSP

Subscription Calendar URL in PHP

会有一股神秘感。 提交于 2019-12-23 05:12:21
问题 Hi, I am working on a project based on event management where each user store there event detail with start and end date. Now I want a feature to subscribe to the desktop application (Outlook, Ical for apple and google calendar), so that any new event save in the database it automatically sync to the desktop application. What is the best approach to achieve this functionality? 回答1: Here's sample code for generating a single event iCal output: $eventData = array( 'title' => $event->getTitle(),

D-Day Calendar has wrong dates when importing from google calendar?

China☆狼群 提交于 2019-12-23 03:18:39
问题 I am using D-Day calendar and I am not sure but I got a weird problem. I basically have this for my code iCalendar iCal = iCalendar.LoadFromStream(file.InputStream); foreach (Event evt in iCal.Events) { DateTime start = evt.DTStart.Date; DateTime end = evt.DTEnd.Date; // loop through it and get values. } Yet when I import a calendar from google calendar the end date is messed up on some of the stuff I am importing. Like for instance I have this Title: should not show When: Sun, March 21(all

Does icalendar support HTML and CSS?

独自空忆成欢 提交于 2019-12-23 03:17:40
问题 I am attempting to create a ICalendar with a html description using the X-ALT-DESC;FMTTYPE=text/html: but it does not appear to support inline CSS for layout/styling is there anyway of making CSS work within an icalendar? 回答1: RFC 5545 (the iCalendar specification) allows you to use HTML, but that's a different thing from the calendar clients supporting it. I suspect that you'll find it rare that any of the non-browser-based calendars will do so. 回答2: As opposed to what jgm implied, the