Fix displaying of iTip acceptence messages
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 15 Aug 2009 18:03:12 +0000 (14:03 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 15 Aug 2009 18:03:12 +0000 (14:03 -0400)
imp/lib/Mime/Viewer/Itip.php

index 50e00b5..963467e 100644 (file)
@@ -517,7 +517,8 @@ class IMP_Horde_Mime_Viewer_Itip extends Horde_Mime_Viewer_Driver
             break;
 
         case 'REQUEST':
-            $sender = $this->_headers->getValue('From');
+            $hdrs = $this->_params['contents']->getHeaderOb();
+            $sender = $hdrs->getValue('From');
             $desc = _("%s requests your free/busy information.");
             break;
 
@@ -669,8 +670,9 @@ class IMP_Horde_Mime_Viewer_Itip extends Horde_Mime_Viewer_Driver
             break;
 
         case 'REPLY':
+            $hdrs = $this->_params['contents']->getHeaderOb();
             $desc = _("%s has replied to the invitation to \"%s\".");
-            $sender = $this->_headers->getValue('From');
+            $sender = $hdrs->getValue('From');
             if ($registry->hasMethod('calendar/updateAttendee')) {
                 $options[] = '<option value="update">' . _("Update respondent status") . '</option>';
             }