[evolution] If no <> in the email address, the address should be the full email address. Fix for #613564
- From: Jeff Cai <jeffcai src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] If no <> in the email address, the address should be the full email address. Fix for #613564
- Date: Wed, 31 Mar 2010 06:40:43 +0000 (UTC)
commit f0e8977241f764dabeec3c3c6d78a65606863085
Author: caiqm <caiqm marathon Prc Sun COM>
Date: Wed Mar 31 14:39:56 2010 +0800
If no <> in the email address, the address should be the full email address.
Fix for #613564
.../gui/contact-editor/e-contact-quick-add.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index 36bd4ed..d10ceea 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]