[evolution/gnome-3-30] I#176 - [Calendar] Incorrectly splits attendee name and email address ][



commit 6114ca73ac307627cde8581ec794335c9c01a6c5
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 16 21:21:11 2018 +0200

    I#176 - [Calendar] Incorrectly splits attendee name and email address ][
    
    Fixes overlooked regression in the Contacts view showing contact's
    email address as: (null) <name domain com>, instead of
    plain: name domain com.
    
    Related to https://gitlab.gnome.org/GNOME/evolution/issues/176

 src/addressbook/util/eab-book-util.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/addressbook/util/eab-book-util.c b/src/addressbook/util/eab-book-util.c
index 3470f2d046..2f954e05b3 100644
--- a/src/addressbook/util/eab-book-util.c
+++ b/src/addressbook/util/eab-book-util.c
@@ -530,7 +530,8 @@ eab_parse_qp_email (const gchar *string,
                const gchar *const_name = NULL, *const_email = NULL;
 
                if (camel_address_unformat (CAMEL_ADDRESS (addr), string) == 1 &&
-                   camel_internet_address_get (addr, 0, &const_name, &const_email)) {
+                   camel_internet_address_get (addr, 0, &const_name, &const_email) &&
+                   const_name && *const_name && const_email && *const_email) {
                        *name = (const_name && *const_name) ? g_strdup (const_name) : NULL;
                        *email = (const_email && *const_email) ? g_strdup (const_email) : NULL;
                        res = TRUE;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]