Bug#744216: pu: package evolution-ews/3.4.4-2

2014-04-14 Thread Josselin Mouette
Le dimanche 13 avril 2014 à 12:03 +0100, Adam D. Barratt a écrit : 
 Control: tags -1 + wheezy confirmed
 
 On Fri, 2014-04-11 at 15:41 +0200, Josselin Mouette wrote:
  the current version of evolution in wheezy works with Exchange 2013 
  server (despite another issue in libsoup that I’ll fix separately), 
  but the free/busy feature is missing.
  
  According to my tests, this patch fixes the bug.
 
 Please go ahead; thanks.

Uploaded, thanks.

-- 
 .''`.Josselin Mouette
: :' :
`. `'
  `-


-- 
To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1397471875.18921.185.camel@dsp0698014



Processed: Re: Bug#744216: pu: package evolution-ews/3.4.4-2

2014-04-14 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 + pending
Bug #744216 [release.debian.org] pu: package evolution-ews/3.4.4-2
Added tag(s) pending.

-- 
744216: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744216
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b744216.139747826827781.transcr...@bugs.debian.org



Bug#744216: pu: package evolution-ews/3.4.4-2

2014-04-14 Thread Adam D. Barratt
Control: tags -1 + pending

On Mon, 2014-04-14 at 12:37 +0200, Josselin Mouette wrote:
 Le dimanche 13 avril 2014 à 12:03 +0100, Adam D. Barratt a écrit : 
  On Fri, 2014-04-11 at 15:41 +0200, Josselin Mouette wrote:
   the current version of evolution in wheezy works with Exchange 2013 
   server (despite another issue in libsoup that I’ll fix separately), 
   but the free/busy feature is missing.
   
   According to my tests, this patch fixes the bug.
  
  Please go ahead; thanks.
 
 Uploaded, thanks.

Flagged for acceptance; thanks.

Regards,

Adam


-- 
To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1397478258.23016.11.ca...@jacala.jungle.funky-badger.org



Bug#744216: pu: package evolution-ews/3.4.4-2

2014-04-13 Thread Adam D. Barratt
Control: tags -1 + wheezy confirmed

On Fri, 2014-04-11 at 15:41 +0200, Josselin Mouette wrote:
 the current version of evolution in wheezy works with Exchange 2013 
 server (despite another issue in libsoup that I’ll fix separately), 
 but the free/busy feature is missing.
 
 According to my tests, this patch fixes the bug.

Please go ahead; thanks.

Regards,

Adam


-- 
To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/1397387001.24647.9.ca...@jacala.jungle.funky-badger.org



Processed: Re: Bug#744216: pu: package evolution-ews/3.4.4-2

2014-04-13 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 + wheezy confirmed
Bug #744216 [release.debian.org] pu: package evolution-ews/3.4.4-2
Added tag(s) wheezy and confirmed.

-- 
744216: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744216
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-release-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b744216.139738701124512.transcr...@bugs.debian.org



Bug#744216: pu: package evolution-ews/3.4.4-2

2014-04-11 Thread Josselin Mouette
Package: release.debian.org
Severity: normal
User: release.debian@packages.debian.org
Usertags: pu

Hi,

the current version of evolution in wheezy works with Exchange 2013 
server (despite another issue in libsoup that I’ll fix separately), 
but the free/busy feature is missing.

According to my tests, this patch fixes the bug.

Please consider for wheezy.
-- 
Joss
Index: debian/changelog
===
--- debian/changelog	(révision 2536)
+++ debian/changelog	(révision 2537)
@@ -1,3 +1,10 @@
+evolution-ews (3.4.4-2) stable; urgency=low
+
+  * 01_freebusy.patch: patch from upstream git. Fix free/busy indicators 
+with Exhange 2013 servers.
+
+ -- Josselin Mouette j...@debian.org  Fri, 11 Apr 2014 15:30:48 +0200
+
 evolution-ews (3.4.4-1) unstable; urgency=low
 
   * New upstream bugfix release (closes: #681802). 
Index: debian/patches/01_freebusy.patch
===
--- debian/patches/01_freebusy.patch	(révision 0)
+++ debian/patches/01_freebusy.patch	(révision 2537)
@@ -0,0 +1,142 @@
+From 428f9d0ccb7e905fbd63b204a0e4244ed09597ec Mon Sep 17 00:00:00 2001
+From: Punit Jain jpu...@suse.com
+Date: Mon, 26 Mar 2012 18:49:21 +0530
+Subject: Bug #659717 free busy not working
+
+
+Index: evolution-ews-3.4.4/src/calendar/e-cal-backend-ews-utils.c
+===
+--- evolution-ews-3.4.4.orig/src/calendar/e-cal-backend-ews-utils.c	2012-08-12 23:30:47.0 +0200
 evolution-ews-3.4.4/src/calendar/e-cal-backend-ews-utils.c	2014-04-11 15:21:40.588569198 +0200
+@@ -400,6 +400,27 @@
+ }
+ 
+ static void
++ewscal_add_availability_default_timechange (ESoapMessage *msg)
++{
++
++	e_soap_message_start_element(msg, StandardTime, NULL, NULL);
++	e_ews_message_write_string_parameter(msg, Bias, NULL, 0);
++	e_ews_message_write_string_parameter(msg, Time, NULL, 00:00:00);
++	e_ews_message_write_string_parameter(msg, DayOrder, NULL, 0);
++	e_ews_message_write_string_parameter(msg, Month, NULL, 0);
++	e_ews_message_write_string_parameter(msg, DayOfWeek, NULL, Sunday);
++	e_soap_message_end_element (msg);
++
++	e_soap_message_start_element(msg, DaylightTime, NULL, NULL);
++	e_ews_message_write_string_parameter(msg, Bias, NULL, 0);
++	e_ews_message_write_string_parameter(msg, Time, NULL, 00:00:00);
++	e_ews_message_write_string_parameter(msg, DayOrder, NULL, 0);
++	e_ews_message_write_string_parameter(msg, Month, NULL, 0);
++	e_ews_message_write_string_parameter(msg, DayOfWeek, NULL, Sunday);
++	e_soap_message_end_element (msg);
++}
++
++static void
+ ewscal_add_availability_timechange (ESoapMessage *msg,
+ icalcomponent *comp,
+ gint baseoffs)
+@@ -448,16 +469,16 @@
+ 	xstd = icalcomponent_get_first_component (comp, ICAL_XSTANDARD_COMPONENT);
+ 	xdaylight = icalcomponent_get_first_component (comp, ICAL_XDAYLIGHT_COMPONENT);
+ 
+-	/* Should never happen. Exchange will bail out */
+-	if (!xstd || !xdaylight)
+-		return;
+-
++	/*TimeZone is the root element of GetUserAvailabilityRequest*/
+ 	e_soap_message_start_element(msg, TimeZone, NULL, NULL);
+ 
+ 	/* Fetch the timezone offsets for the standard (or only) zone.
+ 	 * Negate it, because Exchange does it backwards */
+-	prop = icalcomponent_get_first_property (xstd, ICAL_TZOFFSETTO_PROPERTY);
+-	std_utcoffs = -icalproperty_get_tzoffsetto (prop) / 60;
++	if (xstd) {
++		prop = icalcomponent_get_first_property(xstd, ICAL_TZOFFSETTO_PROPERTY);
++		std_utcoffs = -icalproperty_get_tzoffsetto(prop)/60;
++	} else
++		std_utcoffs = 0;
+ 
+ 	/* This is the overall BaseOffset tag, which the Standard and Daylight
+ 	 * zones are offset from. It's redundant, but Exchange always sets it
+@@ -477,7 +498,10 @@
+ 		e_soap_message_start_element(msg, DaylightTime, NULL, NULL);
+ 		ewscal_add_availability_timechange (msg, xdaylight, std_utcoffs);
+ 		e_soap_message_end_element(msg); /* DaylightTime */
+-	}
++	} else 
++		/* Set default values*/
++		ewscal_add_availability_default_timechange (msg);
++
+ 	e_soap_message_end_element(msg); /* TimeZone */
+ }
+ 
+Index: evolution-ews-3.4.4/src/server/e-ews-connection.c
+===
+--- evolution-ews-3.4.4.orig/src/server/e-ews-connection.c	2012-08-12 23:30:47.0 +0200
 evolution-ews-3.4.4/src/server/e-ews-connection.c	2014-04-11 15:21:40.588569198 +0200
+@@ -32,6 +32,7 @@
+ #include glib/gstdio.h
+ #include libical/icalcomponent.h
+ #include libical/icalproperty.h
++#include libical/ical.h
+ #include e-ews-connection.h
+ #include libedataserver/e-flag.h
+ #include e-ews-message.h
+@@ -4990,7 +4991,7 @@
+ 	ESoapParameter *viewparam, *eventarray, *event_param, *subparam;
+ 	GTimeVal t_val;
+ 	const gchar *name;
+-	gchar *value;
++	gchar *value, *new_val = NULL;
+ 	EwsAsyncData *async_data = g_simple_async_result_get_op_res_gpointer