diff --git a/phpgwapi/inc/class.ischedule_client.inc.php b/phpgwapi/inc/class.ischedule_client.inc.php index 134ee3529c..fdda2a08dc 100644 --- a/phpgwapi/inc/class.ischedule_client.inc.php +++ b/phpgwapi/inc/class.ischedule_client.inc.php @@ -14,7 +14,7 @@ /** * iSchedule client: clientside of iSchedule * - * @link https://tools.ietf.org/html/draft-desruisseaux-ischedule-01 iSchedule draft from 2010 + * @link https://tools.ietf.org/html/draft-desruisseaux-ischedule-03 iSchedule draft from 2013-01-22 */ class ischedule_client { @@ -70,7 +70,7 @@ class ischedule_client if (is_null($url)) { - list(,$domain) = explode('@', $recipient); + list(,$domain) = explode('@', $this->recipients[0]); $this->url = self::discover($domain); } else diff --git a/phpgwapi/inc/class.ischedule_server.inc.php b/phpgwapi/inc/class.ischedule_server.inc.php index 1a3b6fa6a3..be170f195a 100644 --- a/phpgwapi/inc/class.ischedule_server.inc.php +++ b/phpgwapi/inc/class.ischedule_server.inc.php @@ -14,7 +14,7 @@ /** * iSchedule server: serverside of iSchedule * - * @link https://tools.ietf.org/html/draft-desruisseaux-ischedule-01 iSchedule draft from 2010 + * @link https://tools.ietf.org/html/draft-desruisseaux-ischedule-03 iSchedule draft from 2013-01-22 * * groupdav get's extended here to get it's logging, should separate that out ... */ @@ -601,6 +601,8 @@ yXUKsIQVi3qPyPdB3QIDAQAB return array_combine($matches[1], $matches[2]); } + const SERIAL = '123'; + /** * Serve an iSchedule GET request, currently only action=capabilities * @@ -612,11 +614,13 @@ yXUKsIQVi3qPyPdB3QIDAQAB * Content-Type: application/xml; charset=utf-8 * Content-Length: xxxx * iSchedule-Version: 1.0 + * iSchedule-Capabilities: 123 * ETag: "afasdf-132afds" * * * * + * 123 * * 1.0 * @@ -637,9 +641,6 @@ yXUKsIQVi3qPyPdB3QIDAQAB * * * - * - * mailto - * * 102400 * 19910101T000000Z * 20381231T000000Z @@ -688,6 +689,7 @@ yXUKsIQVi3qPyPdB3QIDAQAB $capabilities = ' + '.self::SERIAL.' 1.0 @@ -708,9 +710,6 @@ yXUKsIQVi3qPyPdB3QIDAQAB - - mailto - 102400 19910101T000000Z 20381231T000000Z @@ -723,6 +722,7 @@ yXUKsIQVi3qPyPdB3QIDAQAB // returning capabilities header('Content-Type: application/xml; charset=utf-8'); header('iSchedule-Version: '.self::VERSION); + header('iSchedule-Capabilities: '.self::SERIAL); header('Content-Length: '.bytes($capabilites)); header('ETag: "'.md5($capabilites).'"');