Hello community,

here is the log from the commit of package evolution-data-server for 
openSUSE:Factory checked in at 2020-08-12 10:56:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/evolution-data-server (Old)
 and      /work/SRC/openSUSE:Factory/.evolution-data-server.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "evolution-data-server"

Wed Aug 12 10:56:53 2020 rev:215 rq:825304 version:3.36.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/evolution-data-server/evolution-data-server.changes  
    2020-07-13 09:05:24.400074478 +0200
+++ 
/work/SRC/openSUSE:Factory/.evolution-data-server.new.3399/evolution-data-server.changes
    2020-08-12 10:56:55.608756181 +0200
@@ -1,0 +2,10 @@
+Sun Aug  9 10:14:05 UTC 2020 - Bjørn Lie <[email protected]>
+
+- Update to version 3.36.5:
+  + Fix a memory leak in ebmb_gather_photos_local_filenames().
+  + ESoupSession: Provided SoupAuth might not be always used by
+    libsoup.
+  + Bugs fixed: glgo#GNOME/evolution-data-server#236,
+    glgo#GNOME/evolution-data-server#240.
+
+-------------------------------------------------------------------

Old:
----
  evolution-data-server-3.36.4.tar.xz

New:
----
  evolution-data-server-3.36.5.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ evolution-data-server.spec ++++++
--- /var/tmp/diff_new_pack.jgcxh7/_old  2020-08-12 10:56:56.148756450 +0200
+++ /var/tmp/diff_new_pack.jgcxh7/_new  2020-08-12 10:56:56.148756450 +0200
@@ -32,7 +32,7 @@
 %bcond_without introspection
 
 Name:           evolution-data-server
-Version:        3.36.4
+Version:        3.36.5
 Release:        0
 Summary:        Evolution Data Server
 License:        LGPL-2.0-only

++++++ evolution-data-server-3.36.4.tar.xz -> 
evolution-data-server-3.36.5.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/evolution-data-server-3.36.4/CMakeLists.txt 
new/evolution-data-server-3.36.5/CMakeLists.txt
--- old/evolution-data-server-3.36.4/CMakeLists.txt     2020-07-03 
08:22:31.000000000 +0200
+++ new/evolution-data-server-3.36.5/CMakeLists.txt     2020-08-07 
09:20:31.000000000 +0200
@@ -4,7 +4,7 @@
 cmake_policy(VERSION 3.1)
 
 project(evolution-data-server
-       VERSION 3.36.4
+       VERSION 3.36.5
        LANGUAGES C CXX)
 set(CMAKE_CXX_STANDARD 14)
 set(PROJECT_BUGREPORT 
"https://gitlab.gnome.org/GNOME/evolution-data-server/issues/";)
@@ -333,6 +333,8 @@
        message(FATAL_ERROR "zlib doesn't provide deflateEnd")
 endif(NOT deflateEnd_exists)
 
+pkg_check_at_least_version(HAVE_LIBSOUP_2_58 libsoup-2.4 2.58)
+
 pkg_check_modules(GNOME_PLATFORM REQUIRED
        gio-2.0>=${glib_minimum_version}
        gmodule-2.0>=${glib_minimum_version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/evolution-data-server-3.36.4/NEWS 
new/evolution-data-server-3.36.5/NEWS
--- old/evolution-data-server-3.36.4/NEWS       2020-07-03 08:22:31.000000000 
+0200
+++ new/evolution-data-server-3.36.5/NEWS       2020-08-07 09:20:31.000000000 
+0200
@@ -1,3 +1,14 @@
+Evolution-Data-Server 3.36.5 2020-08-07
+---------------------------------------
+
+Bug Fixes:
+       I#236 - Uses LC_ADDRESS unconditionally in libphonenumber code (Milan 
Crha)
+       I#240 - IMAPx: Disable move to real junk/trash in server-side virtual 
folders (Milan Crha)
+
+Miscellaneous:
+       Fix a memory leak in ebmb_gather_photos_local_filenames() (Milan Crha)
+       ESoupSession: Provided SoupAuth might not be always used by libsoup 
(Milan Crha)
+
 Evolution-Data-Server 3.36.4 2020-07-03
 ---------------------------------------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/evolution-data-server-3.36.4/config.h.in 
new/evolution-data-server-3.36.5/config.h.in
--- old/evolution-data-server-3.36.4/config.h.in        2020-07-03 
08:22:31.000000000 +0200
+++ new/evolution-data-server-3.36.5/config.h.in        2020-08-07 
09:20:31.000000000 +0200
@@ -193,3 +193,6 @@
 
 /* evolution-alarm-notify - Define if using Canberra-GTK for sound */
 #cmakedefine HAVE_CANBERRA 1
+
+/* Define if compiled with libsoup 2.58 and newer */
+#cmakedefine HAVE_LIBSOUP_2_58 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/evolution-data-server-3.36.4/src/addressbook/libebook-contacts/e-phone-number-private.cpp
 
new/evolution-data-server-3.36.5/src/addressbook/libebook-contacts/e-phone-number-private.cpp
--- 
old/evolution-data-server-3.36.4/src/addressbook/libebook-contacts/e-phone-number-private.cpp
       2020-07-03 08:22:31.000000000 +0200
+++ 
new/evolution-data-server-3.36.5/src/addressbook/libebook-contacts/e-phone-number-private.cpp
       2020-08-07 09:20:31.000000000 +0200
@@ -118,8 +118,23 @@
        /* Extract two-letter country code from current locale id if needed.
         * From outside this is a C library, so we better consult the
          * C infrastructure instead of std::locale, which might divert. */
-       if (region_code == NULL || region_code[0] == '\0')
-               return _e_phone_number_cxx_region_code_from_locale (setlocale 
(LC_ADDRESS, NULL));
+       if (region_code == NULL || region_code[0] == '\0') {
+               const gchar *lcl = NULL;
+
+#if defined (LC_TELEPHONE)
+               lcl = setlocale (LC_TELEPHONE, NULL);
+#endif
+
+#if defined (LC_ADDRESS)
+               if (!lcl || !*lcl || (lcl[0] == 'C' && (!lcl[1] || lcl[1] == 
'.')))
+                       lcl = setlocale (LC_ADDRESS, NULL);
+#endif
+
+               if (!lcl || !*lcl || (lcl[0] == 'C' && (!lcl[1] || lcl[1] == 
'.')))
+                       lcl = setlocale (LC_MESSAGES, NULL);
+
+               return _e_phone_number_cxx_region_code_from_locale (lcl);
+       }
 
        return region_code;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/evolution-data-server-3.36.4/src/addressbook/libedata-book/e-book-meta-backend.c
 
new/evolution-data-server-3.36.5/src/addressbook/libedata-book/e-book-meta-backend.c
--- 
old/evolution-data-server-3.36.4/src/addressbook/libedata-book/e-book-meta-backend.c
        2020-07-03 08:22:31.000000000 +0200
+++ 
new/evolution-data-server-3.36.5/src/addressbook/libedata-book/e-book-meta-backend.c
        2020-08-07 09:20:31.000000000 +0200
@@ -521,7 +521,7 @@
 
                values = e_vcard_attribute_get_param (attr, EVC_VALUE);
                if (values && g_ascii_strcasecmp (values->data, "uri") == 0) {
-                       const gchar *url;
+                       gchar *url;
 
                        url = e_vcard_attribute_get_value (attr);
                        if (url && g_str_has_prefix (url, LOCAL_PREFIX)) {
@@ -533,6 +533,8 @@
                                else
                                        g_free (filename);
                        }
+
+                       g_free (url);
                }
        }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/evolution-data-server-3.36.4/src/camel/providers/imapx/camel-imapx-conn-manager.c
 
new/evolution-data-server-3.36.5/src/camel/providers/imapx/camel-imapx-conn-manager.c
--- 
old/evolution-data-server-3.36.4/src/camel/providers/imapx/camel-imapx-conn-manager.c
       2020-07-03 08:22:31.000000000 +0200
+++ 
new/evolution-data-server-3.36.5/src/camel/providers/imapx/camel-imapx-conn-manager.c
       2020-08-07 09:20:31.000000000 +0200
@@ -1882,7 +1882,7 @@
        CamelIMAPXJob *job;
        CamelFolder *folder = NULL;
        gboolean need_to_expunge = FALSE, expunge = FALSE;
-       gboolean success;
+       gboolean success, is_virtual_mailbox;
 
        g_return_val_if_fail (CAMEL_IS_IMAPX_CONN_MANAGER (conn_man), FALSE);
 
@@ -1905,14 +1905,24 @@
                        success = FALSE;
        }
 
-       if (success) {
+       is_virtual_mailbox = camel_imapx_mailbox_has_attribute (mailbox, 
CAMEL_IMAPX_LIST_ATTR_ALL) ||
+                            camel_imapx_mailbox_has_attribute (mailbox, 
CAMEL_IMAPX_LIST_ATTR_FLAGGED);
+
+       if (success && is_virtual_mailbox) {
+               CamelIMAPXFolder *imapx_folder = CAMEL_IMAPX_FOLDER (folder);
+
+               camel_imapx_folder_clear_move_to_real_trash_uids (imapx_folder);
+               camel_imapx_folder_clear_move_to_real_junk_uids (imapx_folder);
+       }
+
+       if (success && !is_virtual_mailbox) {
                success = imapx_conn_manager_move_to_real_junk_sync (
                        conn_man, folder, cancellable,
                        &need_to_expunge, error);
                expunge |= need_to_expunge;
        }
 
-       if (success) {
+       if (success && !is_virtual_mailbox) {
                success = imapx_conn_manager_move_to_real_trash_sync (
                        conn_man, folder, cancellable,
                        &need_to_expunge, error);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/evolution-data-server-3.36.4/src/camel/providers/imapx/camel-imapx-folder.c 
new/evolution-data-server-3.36.5/src/camel/providers/imapx/camel-imapx-folder.c
--- 
old/evolution-data-server-3.36.4/src/camel/providers/imapx/camel-imapx-folder.c 
    2020-07-03 08:22:31.000000000 +0200
+++ 
new/evolution-data-server-3.36.5/src/camel/providers/imapx/camel-imapx-folder.c 
    2020-08-07 09:20:31.000000000 +0200
@@ -1617,6 +1617,30 @@
        g_mutex_unlock (&folder->priv->move_to_hash_table_lock);
 }
 
+void
+camel_imapx_folder_clear_move_to_real_trash_uids (CamelIMAPXFolder *folder)
+{
+       g_return_if_fail (CAMEL_IS_IMAPX_FOLDER (folder));
+
+       g_mutex_lock (&folder->priv->move_to_hash_table_lock);
+
+       g_hash_table_remove_all (folder->priv->move_to_real_trash_uids);
+
+       g_mutex_unlock (&folder->priv->move_to_hash_table_lock);
+}
+
+void
+camel_imapx_folder_clear_move_to_real_junk_uids (CamelIMAPXFolder *folder)
+{
+       g_return_if_fail (CAMEL_IS_IMAPX_FOLDER (folder));
+
+       g_mutex_lock (&folder->priv->move_to_hash_table_lock);
+
+       g_hash_table_remove_all (folder->priv->move_to_real_junk_uids);
+
+       g_mutex_unlock (&folder->priv->move_to_hash_table_lock);
+}
+
 /**
  * camel_imapx_folder_invalidate_local_cache:
  * @folder: a #CamelIMAPXFolder
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/evolution-data-server-3.36.4/src/camel/providers/imapx/camel-imapx-folder.h 
new/evolution-data-server-3.36.5/src/camel/providers/imapx/camel-imapx-folder.h
--- 
old/evolution-data-server-3.36.4/src/camel/providers/imapx/camel-imapx-folder.h 
    2020-07-03 08:22:31.000000000 +0200
+++ 
new/evolution-data-server-3.36.5/src/camel/providers/imapx/camel-imapx-folder.h 
    2020-08-07 09:20:31.000000000 +0200
@@ -111,6 +111,10 @@
 void           camel_imapx_folder_claim_move_to_inbox_uids
                                                (CamelIMAPXFolder *folder,
                                                 GPtrArray *out_uids_to_copy);
+void           camel_imapx_folder_clear_move_to_real_trash_uids
+                                               (CamelIMAPXFolder *folder);
+void           camel_imapx_folder_clear_move_to_real_junk_uids
+                                               (CamelIMAPXFolder *folder);
 void           camel_imapx_folder_update_cache_expire
                                                (CamelFolder *folder,
                                                 time_t expire_when);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/evolution-data-server-3.36.4/src/libedataserver/e-soup-session.c 
new/evolution-data-server-3.36.5/src/libedataserver/e-soup-session.c
--- old/evolution-data-server-3.36.4/src/libedataserver/e-soup-session.c        
2020-07-03 08:22:31.000000000 +0200
+++ new/evolution-data-server-3.36.5/src/libedataserver/e-soup-session.c        
2020-08-07 09:20:31.000000000 +0200
@@ -70,6 +70,7 @@
                                  SoupMessage *message,
                                  SoupAuth *soup_auth)
 {
+       SoupAuthManager *auth_manager;
        SoupSessionFeature *feature;
        SoupURI *soup_uri;
        GType auth_type;
@@ -106,7 +107,15 @@
                }
        }
 
-       soup_auth_manager_use_auth (SOUP_AUTH_MANAGER (feature), soup_uri, 
soup_auth);
+       auth_manager = SOUP_AUTH_MANAGER (feature);
+
+#ifdef HAVE_LIBSOUP_2_58
+       /* This will make sure the 'soup_auth' is used regardless of the 
current 'auth_manager' state.
+          See https://gitlab.gnome.org/GNOME/libsoup/-/issues/196 for more 
information. */
+       soup_auth_manager_clear_cached_credentials (auth_manager);
+#endif /* HAVE_LIBSOUP_2_58 */
+
+       soup_auth_manager_use_auth (auth_manager, soup_uri, soup_auth);
 
        if (!in_soup_uri)
                soup_uri_free (soup_uri);


Reply via email to