public function getEmail()
{
$name = '';
try {
$method = !empty($this->_container) ? $this->_container->getAttribute('METHOD') : 'PUBLISH';
if ($method == 'PUBLISH') {
$attr = 'ORGANIZER';
} elseif ($method == 'REPLY') {
$attr = 'ATTENDEE';
}
} catch (Horde_Icalendar_Exception $e) {
$attr = 'ORGANIZER';
}
try {
$name = parse_url($this->getAttribute($attr));
return $name['path'];
} catch (Horde_Icalendar_Exception $e) {
return '';
}
}