mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-18 01:31:21 +00:00
Some debugging messages.
This commit is contained in:
parent
5ace348339
commit
eb4464aaec
@ -73,6 +73,7 @@ function doItipAttendeeReply( vCalendar $resource, $partstat ) {
|
|||||||
|
|
||||||
if ( !$organizer_principal->Exists() ) {
|
if ( !$organizer_principal->Exists() ) {
|
||||||
dbg_error_log( 'schedule', 'Unknown ORGANIZER "%s" - unable to notify.', $organizer->Value() );
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,6 +176,9 @@ function doItipAttendeeReply( vCalendar $resource, $partstat ) {
|
|||||||
$attendee_inbox->WriteCalendarMember($schedule_request, false);
|
$attendee_inbox->WriteCalendarMember($schedule_request, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
header( "Debug: Could maybe do the iMIP message dance for attendee ". $email );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -276,6 +280,7 @@ function processItipCancel( vCalendar $vcal, vProperty $attendee, WritableCollec
|
|||||||
global $request;
|
global $request;
|
||||||
|
|
||||||
dbg_error_log( 'schedule', 'Processing iTIP CANCEL to %s', $attendee->Value());
|
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 ( !$attendee_calendar->Exists() ) {
|
||||||
if ( doImipMessage('CANCEL', $attendee_principal->email(), $vcal) ) {
|
if ( doImipMessage('CANCEL', $attendee_principal->email(), $vcal) ) {
|
||||||
return '1.1'; // Scheduling whoosit 'Sent'
|
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 ) {
|
function deliverItipCancel( vCalendar $iTIP, vProperty $attendee, WritableCollection $attendee_inbox ) {
|
||||||
$attendee_inbox->WriteCalendarMember($iTIP, false);
|
$attendee_inbox->WriteCalendarMember($iTIP, false);
|
||||||
|
header( "Debug: Could maybe do the iMIP message dance canceling for attendee: ".$attendee->Value());
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once('Multipart.php');
|
require_once('Multipart.php');
|
||||||
@ -341,6 +347,8 @@ require_once('Multipart.php');
|
|||||||
function doImipMessage($method, $to_email, vCalendar $itip) {
|
function doImipMessage($method, $to_email, vCalendar $itip) {
|
||||||
global $c, $request;
|
global $c, $request;
|
||||||
|
|
||||||
|
header( 'Debug: Sending iMIP '.$method.' message to '.$to_email);
|
||||||
|
|
||||||
$mime = new MultiPart();
|
$mime = new MultiPart();
|
||||||
$mime->addPart( $itip->Render(), 'text/calendar; charset=UTF-8; method='.$method );
|
$mime->addPart( $itip->Render(), 'text/calendar; charset=UTF-8; method='.$method );
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user