Index: /trunk/expressoMail1_2/inc/class.imap_functions.inc.php
===================================================================
--- /trunk/expressoMail1_2/inc/class.imap_functions.inc.php (revision 6333)
+++ /trunk/expressoMail1_2/inc/class.imap_functions.inc.php (revision 6430)
@@ -1670,76 +1670,7 @@
case 'REPLY':
- include_once(dirname(__FILE__).'/../../header.inc.php');
- include_once(dirname(__FILE__).'/../../calendar/inc/class.boicalendar.inc.php');
- $boicalendar = new boicalendar();
-
- $ical = $icalService->getComponent('vevent');
- $content.= ''.$this->functions->getLang('Event Calendar').'
';
- $content.= '';
- $notExist = false;
-
- foreach ($ical['attendee'] as $attendee)
- {
- if($attendee['params']['PARTSTAT'] == 'ACCEPTED')
- {
- if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'ACCEPTED',$attendee['params']['CN']))
- {
- $content.= $this->functions->getLang('User').' ';
- if($attendee['params']['CN'])
- $content.= ''.$attendee['params']['CN'].' ';
- else
- $content.= ''.$attendee['value'].' ';
-
- $content.= $this->functions->getLang('accepted your event');
- }
- else
- $notExist = true;
- }
-
- if($attendee['params']['PARTSTAT'] == 'TENTATIVE')
- {
- if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'TENTATIVE',$attendee['params']['CN']))
- {
- $content.= $this->functions->getLang('User').' ';
- if($attendee['params']['CN'])
- $content.= ''.$attendee['params']['CN'].' ';
- else
- $content.= ''.$attendee['value'].' ';
-
- if($ical['description']['value'])
- $content.= '
'.str_replace('\n','
',nl2br($ical['description']['value']));
- else
- $content.= $this->functions->getLang('provisionally accepted you event');
- }
- else
- $notExist = true;
- }
-
- if($attendee['params']['PARTSTAT'] == 'DECLINED')
- {
- if($boicalendar->updateExParticipantState($ical['uid']['value'],$attendee['value'],'DECLINED',$attendee['params']['CN']))
- {
- $content.= $this->functions->getLang('User').' ';
- if($attendee['params']['CN'])
- $content.= ''.$attendee['params']['CN'].' ';
- else
- $content.= ''.$attendee['value'].' ';
-
- if($ical['description']['value'])
- $content.= '
'.str_replace('\n','
',nl2br($ical['description']['value']));
- else
- $content.= $this->functions->getLang('provisionally decline you event');
- }
- else
- $notExist = true;
- }
- }
- if($notExist)
- $content.= ''.$this->functions->getLang('This event does not exist on its agenda').'.';
- $content.= '
';
-
break;
- case 'CANCEL':
+ case 'CANCEL':
$ical = $icalService->getComponent('vevent');