[evolution] I#176 - [Calendar] Incorrectly splits attendee name and email address ][
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#176 - [Calendar] Incorrectly splits attendee name and email address ][
- Date: Tue, 16 Oct 2018 19:23:12 +0000 (UTC)
commit ec2a3a80b0dbb0ee1a6cbd7020e26e18c7d18a21
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]