From b947e1c7e2c7fde65e4378bd8f4ba47f5e219d25 Mon Sep 17 00:00:00 2001 From: Rob Ostensen Date: Mon, 12 Sep 2011 20:56:28 -0500 Subject: [PATCH] skip scheduling attendees with schedule-agent set to something other than server Signed-off-by: Rob Ostensen --- inc/caldav-PUT-functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index 8c71342e..a22f9314 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -339,6 +339,11 @@ function do_scheduling_requests( vCalendar $resource, $create ) { dbg_error_log( "PUT", "not delivering to owner" ); continue; } + $agent = $attendee->GetParameterValue('SCHDEULE-AGENT'); + if ( $agent && $agent != 'SERVER' ) { + dbg_error_log( "PUT", "not delivering to %s, schedule agent set to value other than server", $email ); + continue; + } $schedule_target = new Principal('email',$email); if ( $schedule_target->Exists() ) { $attendee_calendar = new WritableCollection(array('path' => $schedule_target->internal_url('schedule-default-calendar')));