diff --git a/inc/schedule-functions.php b/inc/schedule-functions.php index fcada0f2..35091ed2 100644 --- a/inc/schedule-functions.php +++ b/inc/schedule-functions.php @@ -73,6 +73,7 @@ function doItipAttendeeReply( vCalendar $resource, $partstat ) { if ( !$organizer_principal->Exists() ) { dbg_error_log( 'schedule', 'Unknown ORGANIZER "%s" - unable to notify.', $organizer->Value() ); + header( "Debug: Could maybe do the iMIP message dance for organizer ". $organizer->Value() ); return true; } @@ -175,6 +176,9 @@ function doItipAttendeeReply( vCalendar $resource, $partstat ) { $attendee_inbox->WriteCalendarMember($schedule_request, false); } } + else { + header( "Debug: Could maybe do the iMIP message dance for attendee ". $email ); + } } return true; @@ -276,6 +280,7 @@ function processItipCancel( vCalendar $vcal, vProperty $attendee, WritableCollec global $request; dbg_error_log( 'schedule', 'Processing iTIP CANCEL to %s', $attendee->Value()); + header( "Debug: Could maybe do the iMIP message dance for attendee ". $attendee->Value() ); if ( !$attendee_calendar->Exists() ) { if ( doImipMessage('CANCEL', $attendee_principal->email(), $vcal) ) { return '1.1'; // Scheduling whoosit 'Sent' @@ -327,6 +332,7 @@ function processItipCancel( vCalendar $vcal, vProperty $attendee, WritableCollec */ function deliverItipCancel( vCalendar $iTIP, vProperty $attendee, WritableCollection $attendee_inbox ) { $attendee_inbox->WriteCalendarMember($iTIP, false); + header( "Debug: Could maybe do the iMIP message dance canceling for attendee: ".$attendee->Value()); } require_once('Multipart.php'); @@ -341,6 +347,8 @@ require_once('Multipart.php'); function doImipMessage($method, $to_email, vCalendar $itip) { global $c, $request; + header( 'Debug: Sending iMIP '.$method.' message to '.$to_email); + $mime = new MultiPart(); $mime->addPart( $itip->Render(), 'text/calendar; charset=UTF-8; method='.$method );