[evolution/gnome-2-30] Fix for bug #613564 If no <> in the email address, addr should be the full email address.
- From: Jeff Cai <jeffcai src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-30] Fix for bug #613564 If no <> in the email address, addr should be the full email address.
- Date: Thu, 8 Apr 2010 02:22:19 +0000 (UTC)
commit f0a09020d6824e86e13e1ee64c23a4a0a0200f40
Author: Jeff Cai <jeff cai sun com>
Date: Thu Apr 8 10:18:37 2010 +0800
Fix for bug #613564
If no <> in the email address, addr should be the full email address.
.../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]