mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Update to latest sources
This commit is contained in:
parent
faa8302937
commit
ed7a418995
1 changed files with 19 additions and 6 deletions
|
@ -158,8 +158,25 @@ function parse_meeting_calendar($part, &$output, $is_sent_folder) {
|
|||
$uid = $props[0]->Value();
|
||||
}
|
||||
|
||||
$method = false;
|
||||
$props = $ical->GetPropertiesByPath("VCALENDAR/METHOD");
|
||||
if (count($props) > 0) {
|
||||
$method = strtolower($props[0]->Value());
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->parse_meeting_calendar(): Using method from vcalendar object: %s", $method));
|
||||
}
|
||||
else {
|
||||
if (isset($part->ctype_parameters["method"])) {
|
||||
switch (strtolower($part->ctype_parameters["method"])) {
|
||||
$method = strtolower($part->ctype_parameters["method"])
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->parse_meeting_calendar(): Using method from mime part object: %s", $method));
|
||||
}
|
||||
}
|
||||
|
||||
if ($method === false) {
|
||||
ZLog::Write(LOGLEVEL_WARN, sprintf("BackendIMAP->parse_meeting_calendar() - No method header, please report it to the developers"));
|
||||
$output->messageclass = "IPM.Appointment";
|
||||
}
|
||||
else {
|
||||
switch ($method) {
|
||||
case "cancel":
|
||||
$output->messageclass = "IPM.Schedule.Meeting.Canceled";
|
||||
$output->meetingrequest->disallownewtimeproposal = 1;
|
||||
|
@ -227,10 +244,6 @@ function parse_meeting_calendar($part, &$output, $is_sent_folder) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
ZLog::Write(LOGLEVEL_WARN, sprintf("BackendIMAP->parse_meeting_calendar() - No method header, please report it to the developers"));
|
||||
$output->messageclass = "IPM.Appointment";
|
||||
}
|
||||
|
||||
$props = $ical->GetPropertiesByPath('VEVENT/DTSTAMP');
|
||||
if (count($props) == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue