From f0e8977241f764dabeec3c3c6d78a65606863085 Mon Sep 17 00:00:00 2001 From: caiqm Date: Wed, 31 Mar 2010 14:39:56 +0800 Subject: If no <> in the email address, the address should be the full email address. Fix for #613564 --- addressbook/gui/contact-editor/e-contact-quick-add.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 36bd4ed948..d10ceeac6f 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -605,6 +605,8 @@ e_contact_quick_add_email (const gchar *email, EContactQuickAddCallback cb, gpoi if (lt != NULL && gt != NULL && (gt - lt) > 0) { name = g_strndup (email, lt - email); addr = g_strndup (lt + 1, gt - lt - 1); + } else { + addr = email; } e_contact_quick_add (name, addr, cb, closure); -- cgit v1.2.3