Fix updating status from an attendee's iTip response
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 15 Aug 2009 18:20:01 +0000 (14:20 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 15 Aug 2009 18:21:03 +0000 (14:21 -0400)
imp/lib/Mime/Viewer/Itip.php

index 963467e..a8fe4ee 100644 (file)
@@ -115,7 +115,8 @@ class IMP_Horde_Mime_Viewer_Itip extends Horde_Mime_Viewer_Driver
                 // vEvent reply.
                 if ($registry->hasMethod('calendar/updateAttendee')) {
                     try {
-                        $event = $registry->call('calendar/updateAttendee', array('response' => $components[$key], 'sender' => $params[0]->getFromAddress()));
+                        $hdrs = $this->_params['contents']->getHeaderOb();
+                        $event = $registry->call('calendar/updateAttendee', array('response' => $components[$key], 'sender' => $hdrs->getValue('From')));
                         $msgs[] = array('success', _("Respondent Status Updated."));
                     } catch (Horde_Exception $e) {
                         $msgs[] = array('error', _("There was an error updating the event:") . ' ' . $e->getMessage());