Hello community, here is the log from the commit of package evolution-ews for openSUSE:Factory checked in at 2017-02-19 00:38:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/evolution-ews (Old) and /work/SRC/openSUSE:Factory/.evolution-ews.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "evolution-ews" Changes: -------- --- /work/SRC/openSUSE:Factory/evolution-ews/evolution-ews.changes 2017-01-23 11:21:49.910250551 +0100 +++ /work/SRC/openSUSE:Factory/.evolution-ews.new/evolution-ews.changes 2017-02-19 00:38:07.468960742 +0100 @@ -1,0 +2,6 @@ +Mon Feb 13 12:56:27 UTC 2017 - [email protected] + +- Update to version 3.22.5: + + Bugs fixed: bgo#777946. + +------------------------------------------------------------------- Old: ---- evolution-ews-3.22.4.tar.xz New: ---- evolution-ews-3.22.5.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ evolution-ews.spec ++++++ --- /var/tmp/diff_new_pack.csB5x2/_old 2017-02-19 00:38:08.000885935 +0100 +++ /var/tmp/diff_new_pack.csB5x2/_new 2017-02-19 00:38:08.000885935 +0100 @@ -19,7 +19,7 @@ Name: evolution-ews # This should be updated upon major version changes; it should match BASE_VERSION as defined in configure.in. %define evolution_base_version 3.22 -Version: 3.22.4 +Version: 3.22.5 Release: 0 Summary: Exchange Connector for Evolution, compatible with Exchange 2007 and later License: LGPL-2.1 ++++++ evolution-ews-3.22.4.tar.xz -> evolution-ews-3.22.5.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evolution-ews-3.22.4/NEWS new/evolution-ews-3.22.5/NEWS --- old/evolution-ews-3.22.4/NEWS 2017-01-16 13:44:28.000000000 +0100 +++ new/evolution-ews-3.22.5/NEWS 2017-02-13 13:36:05.000000000 +0100 @@ -1,3 +1,9 @@ +Evolution-EWS 3.22.5 2017-02-13 +------------------------------- + +Bug Fixes: + Bug 777946 - Fails to import regular appointment (Milan Crha) + Evolution-EWS 3.22.4 2017-01-16 ------------------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evolution-ews-3.22.4/configure new/evolution-ews-3.22.5/configure --- old/evolution-ews-3.22.4/configure 2017-01-16 13:45:01.000000000 +0100 +++ new/evolution-ews-3.22.5/configure 2017-02-13 13:36:35.000000000 +0100 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for evolution-ews 3.22.4. +# Generated by GNU Autoconf 2.69 for evolution-ews 3.22.5. # # Report bugs to <http://bugzilla.gnome.org/browse.cgi?product=evolution-ews>. # @@ -591,8 +591,8 @@ # Identity of this package. PACKAGE_NAME='evolution-ews' PACKAGE_TARNAME='evolution-ews' -PACKAGE_VERSION='3.22.4' -PACKAGE_STRING='evolution-ews 3.22.4' +PACKAGE_VERSION='3.22.5' +PACKAGE_STRING='evolution-ews 3.22.5' PACKAGE_BUGREPORT='http://bugzilla.gnome.org/browse.cgi?product=evolution-ews' PACKAGE_URL='' @@ -1521,7 +1521,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures evolution-ews 3.22.4 to adapt to many kinds of systems. +\`configure' configures evolution-ews 3.22.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1591,7 +1591,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of evolution-ews 3.22.4:";; + short | recursive ) echo "Configuration of evolution-ews 3.22.5:";; esac cat <<\_ACEOF @@ -1797,7 +1797,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -evolution-ews configure 3.22.4 +evolution-ews configure 3.22.5 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2166,7 +2166,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by evolution-ews $as_me 3.22.4, which was +It was created by evolution-ews $as_me 3.22.5, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3029,7 +3029,7 @@ # Define the identity of the package. PACKAGE='evolution-ews' - VERSION='3.22.4' + VERSION='3.22.5' cat >>confdefs.h <<_ACEOF @@ -3268,11 +3268,11 @@ # precisely one minor behind [ews_version], then allow building against *that* # version of EDS and Evo. read x NEWSVER y < NEWS -PREVVER=3.22.$(expr 4 - 1) +PREVVER=3.22.$(expr 5 - 1) if test "$PREVVER" = "$NEWSVER"; then EVOREQVER=$PREVVER else - EVOREQVER=3.22.4 + EVOREQVER=3.22.5 fi @@ -17965,7 +17965,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by evolution-ews $as_me 3.22.4, which was +This file was extended by evolution-ews $as_me 3.22.5, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -18031,7 +18031,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -evolution-ews config.status 3.22.4 +evolution-ews config.status 3.22.5 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evolution-ews-3.22.4/configure.ac new/evolution-ews-3.22.5/configure.ac --- old/evolution-ews-3.22.4/configure.ac 2016-12-12 16:28:57.000000000 +0100 +++ new/evolution-ews-3.22.5/configure.ac 2017-01-16 13:47:24.000000000 +0100 @@ -1,7 +1,7 @@ dnl Evolution-EWS version m4_define([ews_major_version], [3]) m4_define([ews_minor_version], [22]) -m4_define([ews_micro_version], [4]) +m4_define([ews_micro_version], [5]) m4_define([ews_version], [ews_major_version.ews_minor_version.ews_micro_version]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/evolution-ews-3.22.4/src/calendar/e-cal-backend-ews.c new/evolution-ews-3.22.5/src/calendar/e-cal-backend-ews.c --- old/evolution-ews-3.22.4/src/calendar/e-cal-backend-ews.c 2016-09-19 17:01:10.000000000 +0200 +++ new/evolution-ews-3.22.5/src/calendar/e-cal-backend-ews.c 2017-02-06 14:06:19.000000000 +0100 @@ -2339,6 +2339,23 @@ const gchar *attendee_str = NULL, *attendee_mail = NULL; gint attendees_count = 0; const gchar *response = NULL; + gboolean found = FALSE; + + attendee = icalcomponent_get_first_property (icalcomp, ICAL_ORGANIZER_PROPERTY); + if (attendee) { + attendee_str = icalproperty_get_organizer (attendee); + + if (attendee_str) { + if (!strncasecmp (attendee_str, "MAILTO:", 7)) + attendee_mail = attendee_str + 7; + else + attendee_mail = attendee_str; + if (attendee_mail && current_user_mail && g_ascii_strcasecmp (attendee_mail, current_user_mail) == 0) { + /* Empty string means it's an organizer, NULL is when not found */ + return ""; + } + } + } for (attendee = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY); attendee != NULL; @@ -2350,19 +2367,22 @@ attendee_mail = attendee_str + 7; else attendee_mail = attendee_str; - if (attendee_mail && current_user_mail && g_ascii_strcasecmp (attendee_mail, current_user_mail) == 0) - return icalproperty_get_parameter_as_string (attendee, "PARTSTAT"); + if (attendee_mail && current_user_mail && g_ascii_strcasecmp (attendee_mail, current_user_mail) == 0) { + response = icalproperty_get_parameter_as_string (attendee, "PARTSTAT"); + found = TRUE; + } } } /* this should not happen, but if the user's configured email does not match the one used in the invitation, like when the invitation comes to a mailing list... */ - if (attendees_count == 1) { + if (!found && attendees_count == 1) { attendee = icalcomponent_get_first_property (icalcomp, ICAL_ATTENDEE_PROPERTY); g_return_val_if_fail (attendee != NULL, NULL); - return icalproperty_get_parameter_as_string (attendee, "PARTSTAT"); - } else { + response = icalproperty_get_parameter_as_string (attendee, "PARTSTAT"); + found = TRUE; + } else if (!found) { ESourceRegistry *registry; ECalComponent *comp; @@ -2377,8 +2397,10 @@ if (!attendee) attendee = find_attendee_if_sentby (icalcomp, my_address); - if (attendee) + if (attendee) { response = icalproperty_get_parameter_as_string (attendee, "PARTSTAT"); + found = TRUE; + } g_free (my_address); } @@ -2386,6 +2408,10 @@ g_object_unref (comp); } + if (found && !response) { + response = "NEEDS-ACTION"; + } + return response; } @@ -2404,16 +2430,21 @@ gint pass = 0; GSList *ids = NULL; - if (!response_type) { + if (!response_type && + e_cal_util_component_has_organizer (subcomp) && + e_cal_util_component_has_attendee (subcomp)) { g_set_error (error, E_DATA_CAL_ERROR, UnknownUser, _("Cannot find user '%s' between attendees"), cbews->priv->user_email ? cbews->priv->user_email : "NULL"); return; } - ews_cal_component_get_calendar_item_accept_id (comp, &item_id, &change_key, &mail_id); + if (response_type && *response_type) + ews_cal_component_get_calendar_item_accept_id (comp, &item_id, &change_key, &mail_id); + else + response_type = NULL; while (pass < 2) { /*in case we do not have item id we will create item with mime content only*/ - if (item_id == NULL) { + if (!item_id || (response_type && g_ascii_strcasecmp (response_type, "NEEDS-ACTION") == 0)) { e_ews_receive_objects_no_exchange_mail (cbews, subcomp, &ids, cancellable, &local_error); } else { EwsCalendarConvertData convert_data = { 0 };
