tristanpriem / qcal

Automatically exported from code.google.com/p/qcal
0 stars 0 forks source link

Does organiser property have the correct syntax? #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 This is my ical:
BEGIN:VCALENDAR PRODID:-//Luke Visinoni//qCal v0.1//EN VERSION:2.0
BEGIN:VEVENT DTSTART:20090310T104324 DTEND:20090310T112200
ORGANIZER:CN=John Smith:MAILTO:jsmith@host1.com END:VEVENT END:VCALENDAR

The organizer property is not recognised by google mail.
This is the output:

Title:  (No Subject)
When:   2009-03-10 10:43 – 11:22 (GMT)
Who:    Unknown Organizer*

In the example on p137 of rfc 2445 the organiser should have a semi-colon
after itself, not a colon.

This is an ical with a semi-colon where google mail recognises the organiser:

BEGIN:VCALENDAR PRODID:-//Luke Visinoni//qCal v0.1//EN VERSION:2.0
BEGIN:VEVENT
DTSTART:20090310T104324 DTEND:20090310T112200
ORGANIZER;CN=John Smith:MAILTO:jsmith@host1.com
END:VEVENT
END:VCALENDAR

The output from google mail:
Title:  (No Subject)
When:   2009-03-10 10:43 – 11:22 (GMT)
Who:    jsmith@host1.com*

Original issue reported on code.google.com by kkui...@hotmail.com on 11 Mar 2009 at 12:06

GoogleCodeExporter commented 9 years ago
ical is delimited by newlines. you have a lot of items on the same line. It 
doesn't
look like it is getting delimited properly. I'll look into this... 

Original comment by Luke.Vis...@gmail.com on 12 Mar 2009 at 12:35

GoogleCodeExporter commented 9 years ago
Can you provide the code that created this?

Original comment by Luke.Vis...@gmail.com on 12 Mar 2009 at 12:36

GoogleCodeExporter commented 9 years ago
This is the calendar:

BEGIN:VCALENDAR
PRODID:-//Luke Visinoni//qCal v0.1//EN
VERSION:2.0
BEGIN:VEVENT
DTSTART:20090310T104324
DTEND:20090310T112200
ORGANIZER:MAILTO:jsmith@host1.com
END:VEVENT
END:VCALENDAR

And this is the php code:

// Do I really need to include all of these? Is there not a
// single file I can include which includes all of these?
// Am I doing that correctly?

require_once($qCal_PATH . 'qCal/Value.php');
require_once($qCal_PATH . 'qCal/Property.php');
require_once($qCal_PATH . 'qCal/Component.php');
require_once($qCal_PATH . 'qCal/Date.php');
require_once($qCal_PATH . 'qCal/Component/Calendar.php');
require_once($qCal_PATH . 'qCal/Component/Event.php');
require_once($qCal_PATH . 'qCal.php');

require_once($qCal_PATH . 'qCal/Property/Dtstart.php');
require_once($qCal_PATH . 'qCal/Property/Dtend.php');
require_once($qCal_PATH . 'qCal/Property/Organizer.php');
require_once($qCal_PATH . 'qCal/Property/Duration.php');
require_once($qCal_PATH . 'qCal/Property/Rrule.php');
require_once($qCal_PATH . 'qCal/Property/Location.php');
require_once($qCal_PATH . 'qCal/Property/Summary.php');
require_once($qCal_PATH . 'qCal/Property/Attendee.php');
require_once($qCal_PATH . 'qCal/Property/Uid.php');
require_once($qCal_PATH . 'qCal/Property/Resources.php');

require_once($qCal_PATH . 'qCal/Date/Duration.php');

require_once($qCal_PATH . 'qCal/Value/Binary.php');
require_once($qCal_PATH . 'qCal/Value/Boolean.php');
require_once($qCal_PATH . 'qCal/Value/Uri.php');
require_once($qCal_PATH . 'qCal/Value/CalAddress.php');
require_once($qCal_PATH . 'qCal/Value/Multi.php');
require_once($qCal_PATH . 'qCal/Value/DateTime.php');
require_once($qCal_PATH . 'qCal/Value/Date.php');
require_once($qCal_PATH . 'qCal/Value/Duration.php');
require_once($qCal_PATH . 'qCal/Value/Float.php');
require_once($qCal_PATH . 'qCal/Value/Integer.php');

require_once($qCal_PATH . 'qCal/Value/Period.php');
require_once($qCal_PATH . 'qCal/Value/Recur.php');
require_once($qCal_PATH . 'qCal/Value/Text.php');
require_once($qCal_PATH . 'qCal/Value/Time.php');

require_once($qCal_PATH . 'qCal/Renderer.php');
require_once($qCal_PATH . 'qCal/Renderer/iCalendar.php');

//require_once($qCal_PATH .'qCal/Value/Title.php');

// Create a new calendar
$cal = new qCal();

// Create a new event
$event = new qCal_Component_Event();

//  Add start DateTime. 
$start = new qCal_Property_Dtstart('20090310T104324');
$event->addProperty($start);

// Add endtime
$end = new qCal_Property_Dtend('2009-03-10 11:22');
$event->addProperty($end);

// Add organiser
$organizer = new qCal_Property_Organizer("MAILTO:jsmith@host1.com");
$event->addProperty($organizer);

// Attach the event to the calendar
$cal->attach($event);

// Produce an iCal output
$ical = $cal->render();
echo $ical;

Original comment by kkui...@hotmail.com on 29 Apr 2009 at 8:45

GoogleCodeExporter commented 9 years ago
Well honestly this library has been on the backburner for a while now. I have 
been
meaning to finish it, but I have yet to find much time to do so. I'll 
definitely be
implementing some method for including all of the required files, but as of yet 
there
is nothing that does it. This library is not even at version 0.1 yet so it 
really
isn't ready for use yet. I'd love to hear any input you may have and you are 
welcome
to help me with the library if you like.

Original comment by Luke.Vis...@gmail.com on 29 Apr 2009 at 4:06

GoogleCodeExporter commented 9 years ago

Original comment by Luke.Vis...@gmail.com on 7 Jan 2010 at 5:21