steffen: server/kolab-resource-handlers/kolab-resource-handlers/resmgr resmgr.php, 1.57, 1.58
cvs at intevation.de
cvs at intevation.de
Tue Nov 30 20:17:49 CET 2004
Author: steffen
Update of /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/resmgr
In directory doto:/tmp/cvs-serv27299/kolab-resource-handlers/resmgr
Modified Files:
resmgr.php
Log Message:
Fix for Issue553 (invitations sent through dist. list)
Index: resmgr.php
===================================================================
RCS file: /kolabrepository/server/kolab-resource-handlers/kolab-resource-handlers/resmgr/resmgr.php,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- resmgr.php 26 Nov 2004 22:57:12 -0000 1.57
+++ resmgr.php 30 Nov 2004 19:17:46 -0000 1.58
@@ -484,20 +484,24 @@
}
$itip_reply->setAttribute('ORGANIZER', $itip->getAttribute('ORGANIZER'), array_pop($itip->getAttribute('ORGANIZER', true)));
- $attendees = $itip->getAttribute( 'ATTENDEE' );
- if( !is_array( $attendees ) ) {
- $attendees = array( $attendees );
- }
- $params = $itip->getAttribute( 'ATTENDEE', true );
- for( $i = 0; $i < count($attendees); $i++ ) {
- $attendee = preg_replace('/^mailto:\s*/i', '', $attendees[$i]);
- if ($attendee != $resource) {
- continue;
- }
- $params = $params[$i];
- break;
- }
+ // Let's try and remove this code and just create
+ // the ATTENDEE stuff in the reply from scratch
+// $attendees = $itip->getAttribute( 'ATTENDEE' );
+// if( !is_array( $attendees ) ) {
+// $attendees = array( $attendees );
+// }
+// $params = $itip->getAttribute( 'ATTENDEE', true );
+// for( $i = 0; $i < count($attendees); $i++ ) {
+// $attendee = preg_replace('/^mailto:\s*/i', '', $attendees[$i]);
+// if ($attendee != $resource) {
+// continue;
+// }
+// $params = $params[$i];
+// break;
+// }
+ $params = array();
+ $params['CN'] = $cn;
switch ($type) {
case RM_ITIP_DECLINE:
myLog("Sending DECLINE iTip reply to $organiser", RM_LOG_DEBUG);
More information about the commits
mailing list