Projects
Kolab:16
kolab-freebusy
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
kolab-freebusy.spec
Changed
@@ -23,8 +23,8 @@ %global _ap_sysconfdir %{_sysconfdir}/%{httpd_name} Name: kolab-freebusy -Version: 1.1.0 -Release: 2%{?dist} +Version: 1.1.1 +Release: 1%{?dist} Summary: Kolab Free/Busy Web Presentation Layer Group: Applications/Internet @@ -163,6 +163,9 @@ %attr(0770,root,%{httpd_group}) %{_localstatedir}/log/%{name} %changelog +* Wed Aug 1 2018 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 1.1.1-1 +- Release of version 1.1.1 + * Wed Feb 7 2018 Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> - 1.1.0-2 - Repack of tagged version
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +kolab-freebusy (1.1.1-0~kolab1) unstable; urgency=low + + * Release of version 1.1.1 + + -- Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Wed, 1 Aug 2018 12:00:22 +0200 + kolab-freebusy (1.1.0-0~kolab3) unstable; urgency=low * Fix autoloader configuration
View file
kolab-freebusy-1.1.0.tar.gz/lib/Kolab/FreeBusy/SourceIMAP.php -> kolab-freebusy-1.1.1.tar.gz/lib/Kolab/FreeBusy/SourceIMAP.php
Changed
@@ -118,11 +118,13 @@ $query = array(array('dtstart','<=',$dtend), array('dtend','>=',$dtstart)); foreach ($folders as $folder) { - $count = 0; + $count = 0; + $namespace = $folder->get_namespace(); + $log->debug('Reading Kolab folder: ' . $folder->name, $folder->get_folder_info()); // skip other user's shared calendars - if (!$read_all && $folder->get_namespace() == 'other') { + if (!$read_all && $namespace == 'other') { continue; } @@ -139,6 +141,8 @@ continue; } + $event['namespace'] = $namespace; + // only consider shared namespace events if user is a confirmed participant (or organizer) // skip declined events if (!$this->check_participation($event, $user_email, $status) @@ -184,6 +188,7 @@ // consider recurrence exceptions if (is_array($event['recurrence']['EXCEPTIONS'])) { foreach ($event['recurrence']['EXCEPTIONS'] as $i => $exception) { + $exception['namespace'] = $namespace; // register exdate for this occurrence if ($exception['recurrence_date'] instanceof \DateTime) { $exdates[] = $exception['recurrence_date']; @@ -224,7 +229,7 @@ $log->debug("Adding event for processing:\n" . $ve->serialize()); } - $log->addInfo("Added $count events from folder" . $folder->name); + $log->addInfo("Added $count events from folder " . $folder->name); } $this->imap_disconnect($imap, $config, $folders); @@ -333,19 +338,11 @@ { if (is_array($event['organizer']) && !empty($event['organizer']['email'])) { if (in_array($event['organizer']['email'], $user_email)) { - $status = 'ACCEPTED'; - if ($event['free_busy'] == 'tentative') { - $status = 'TENTATIVE'; - } - else if (!empty($event['status'])) { - $status = $event['status']; - } - - return true; + $is_organizer = true; } } - if (is_array($event['attendees'])) { + if (!$is_organizer && is_array($event['attendees'])) { foreach ($event['attendees'] as $attendee) { if (in_array($attendee['email'], $user_email)) { $status = $attendee['status']; @@ -354,6 +351,18 @@ } } + if ($is_organizer || $event['namespace'] == 'personal') { + $status = 'ACCEPTED'; + if ($event['free_busy'] == 'tentative') { + $status = 'TENTATIVE'; + } + else if (!empty($event['status'])) { + $status = $event['status']; + } + + return true; + } + return false; } }
View file
kolab-freebusy.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-freebusy Binary: kolab-freebusy Architecture: all -Version: 1.1.0-0~kolab3 +Version: 1.1.1-0~kolab1 Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Homepage: http://www.kolab.org Standards-Version: 3.9.3 @@ -12,5 +12,5 @@ Package-List: kolab-freebusy deb mail extra Files: - 00000000000000000000000000000000 0 kolab-freebusy-1.1.0.tar.gz + 00000000000000000000000000000000 0 kolab-freebusy-1.1.1.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.