aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorcaiqm <caiqm@marathon.Prc.Sun.COM>2010-03-31 14:39:56 +0800
committercaiqm <caiqm@marathon.Prc.Sun.COM>2010-03-31 14:39:56 +0800
commitf0e8977241f764dabeec3c3c6d78a65606863085 (patch)
treef029d23c9298e336cb9879408e24b688ef264d25 /addressbook
parentac49d56810b0d908bb17608f58cb0635c87d6240 (diff)
downloadgsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.tar
gsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.tar.gz
gsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.tar.bz2
gsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.tar.lz
gsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.tar.xz
gsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.tar.zst
gsoc2013-evolution-f0e8977241f764dabeec3c3c6d78a65606863085.zip
If no <> in the email address, the address should be the full email address.
Fix for #613564
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/gui/contact-editor/e-contact-quick-add.c2
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 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);